It would REALLY help if you posted some code. I've used Net::FTP for a few things, and I haven't noticed this behavior, but that doesn't necessarily mean anything...
-----Original Message----- From: Torres, Jose [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 2:39 PM To: '[EMAIL PROTECTED]' Subject: Net::FTP library question Hi, For those familar with the Net::FTP library, I have a question about one of the methods, ls(). An example call is: @allDirs = $ftp->ls() This seems like a pretty straightforward method, it returns an array populated with the results of an "ls" call within the current directory of the $ftp object. Does ls() return empty directories, if those exist in the current directory of the $ftp object? I assumed it did, since if you do an "ls" within a directory, it lists everything. I have a directory "foo", with two subdirectories "bar" and "bat." Bar is full of Word documents and bat is completely empty. From the command line, calling "ls" in "foo" should return: bar/ bat/ The fact that bat is empty shouldn't matter at all. But it looks like in my code that bat is not appearing in @allDirs. My code actually runs on a much bigger directory structure and it seems as though directories that I know to be empty are not being picked up by the ls() method. Am I doing something wrong? Any advice as to what's happening here? Thanks in advance for all help. It is much appreciated. -Jose -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
