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 <1331493231.74.0.237985226625.issue11406@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
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: <1331493231.74.0.237985226625.issue11406@psf.upfronthosting.co.za>
2012-03-11 19:13:51serhiy.storchakalinkissue11406 messages
2012-03-11 19:13:51serhiy.storchakacreate