[PD] Testing whether a directory is empty without printing error messages if it is

Jack jack at rybn.org
Mon Jun 20 19:06:37 CEST 2011

Le lundi 20 juin 2011 à 18:36 +0200, Matteo Sisti Sette a écrit :
> Hi,
> I'm using [folder_list] to perform the following tasks:
> - check whether a directory or file exists
> - get the list of files in a directory (which is an empty list if the 
> directory is empty)
> However, when the file does not exist or the directory of which I'm 
> getting the list is empty, it prints an error message on the console. 
> The test works, but I need to avoid printing error messages when there's 
> no error to worry about.
> Is there another way of getting a directory list without printing an 
> error message to the console if the list is empty?
Modify the source code ?


> Thanks
> m.
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110620/ffcb0002/attachment.pgp>

More information about the Pd-list mailing list