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

"Mark Hahn" <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
Chris Green wrote:
> "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

I guess it's also a matter of consistency.  delete and make are recursive.
I was just being lazy.  That's what you guys are for, keeping me honest
(making more work for me).
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.