Monday, 15 September 2014

java - why every directory in FTP list has a "dot" item -


I am creating a JETRY that loads the files and folders of an FTP server, using (Apache Commons) I use this method to load files in a specific directory:

  FTPFile [] innerFiles = ftp.listFiles ();  

I have noticed that for any directory, the internal file is [0] . It is easy to ignore them by viewing and internal file [1] is .. infryfile [2], but I want to know that for these reserved items What is there and what can be a problem in regards to ignoring them? / P>

These files represent the current directory (. ) and above ( .. ).

You can specify strips on the outside.


No comments:

Post a Comment