Suppose I have a folder called a on the FTPServer,in which there are a file called a.txt and another folder called.
1.FTPFile[] fileList = ftp.directoryList("/f");
for(int i=0; i<fileList.length; i++){
System.out.println("The path is "+fileList[i].getPath());
}
In situation 1,The output is "The path is ///f The path is ///f"
2.ftp.changeDirectory("/f");
FTPFile[] fileList2 = ftp.directoryList();
for(int i=0; i<fileList2.length; i++){
System.out.println("The path is "+fileList2[i].getPath());
}
In situation 2,The output is "The path is /f The path is /f"
I want to ask Why we get two different answers here:"///f" and "/f"
My OS is Windows XP SP3 Simplified Chinese Edition
The Server's OS is Windows XP SP2 Simplified Chinese Edition,and I am using CrossFTP 1.5