This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Trundle, brian.curtin, eric.araujo, giampaolo.rodola, loewis, neologix, nvetoshkin, pitrou, serhiy.storchaka, socketpair, terry.reedy, torsten
Date 2012-03-11.19:13:51
SpamBayes Score 0.0064685
Marked as misclassified No
Message-id <>
> On Unix, doing os.stat
> on the directory, then looking on st_nlink, will tell you whether
> the directory is empty (st_nlink is 2 on an empty directory).

Directory with st_nlink==2 can contains any number of non-directory files. And one subdirectory if this directory is root.
Date User Action Args
2012-03-11 19:13:51serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, terry.reedy, pitrou, giampaolo.rodola, eric.araujo, Trundle, brian.curtin, torsten, nvetoshkin, neologix, socketpair
2012-03-11 19:13:51serhiy.storchakasetmessageid: <>
2012-03-11 19:13:51serhiy.storchakalinkissue11406 messages
2012-03-11 19:13:51serhiy.storchakacreate