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]