Re: When is File/Dir.exists?() false?

Chris Green <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Organization have you seen my office?
Message-ID <[email protected]>
"Mark Hahn" <[email protected]> writes:

>> Shouldn't size() be fully recursive? Otherwise it
>> might be misleading to users. Of course, this could
>> take awhile if the dir is large.
>
> This was just a practical decision.  I could be talked into making it
> recursive.  My thinking was that you could add code to make it recursive
> yourself.
>
> Comments?  Votes?


Is there anytime that you would want the size of the directory and
NOT have it be recursive?  I've done a lot of du -s in my day and
counted the # of items in a single layer of a directory.

In the other situations, it's easy enough to iterate over the list of
the directory
-- 
Chris Green <[email protected]>
Laugh and the world laughs with you, snore and you sleep alone.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.