Hi Andy, thanks for the script you send under "findfile" thead, and it work.
For a small directory(in term of number of files in it), it work great, but
then if there are many sub-directories and many files in each one of those
sub-directory, it starts to get very slow.
I know perhaps its a strech, but is there any other way to list files within
a directory and its sub-directories quicker.
If I'm not mistaken, in Unix, a directory is a file that contains a table
listing the files contained within it, giving file names to the inode
numbers in the list. An inode is a special file designed to be read by the
kernel to learn the information about each file. It specifies the
permissions on the file, ownership, date of creation and of last access and
change, and the physical location of the data blocks on the disk containing
the file
Is there similar method in Windows FileSystem by calling Windows System
Calls?
Thanks again.
"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:aa********************************@4ax.com...
On Mon, 15 Mar 2004 16:57:00 -0500, "Ruby Tuesday" <ru*********@yahoo.com>
wrote:
Is there a fast way to read files/directory recursively?
I just posted one, see the recent 'findfile' thread.
Instead of inspecting each file(s)/dir(s), is there a way to know that
its afile or a directory from its hidden attribut both for windows or unix
filesystem? Thanks
What do you mean? What's a 'hidden attribute'? How can you check
attributes of a file or directory _without_ inspecting it?
To check if something is a directory, use is_dir().
--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>