hidden file detection

L

Lenny G.

What's the best way to do cross-platform hidden file detection? I want
to do something like weed-out the files that should be 'hidden' from
os.listdir() (which would be files that start with '.' under Unix,
files that have the hidden attribute set on windows, and whatever it is
that makes Mac files hidden). Is there a util or lib that does this
for me?

Thanks,
Gary
 
F

Fabian Steiner

Lenny said:
What's the best way to do cross-platform hidden file detection? I want
to do something like weed-out the files that should be 'hidden' from
os.listdir() (which would be files that start with '.' under Unix,
files that have the hidden attribute set on windows, and whatever it is
that makes Mac files hidden). Is there a util or lib that does this
for me?

Thanks,
Gary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,298
Messages
2,571,539
Members
48,274
Latest member
HowardKipp

Latest Threads

Top