|
@@ -215,7 +215,19 @@ public class FTP |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
String cwd = ftp.printWorkingDirectory(); |
|
|
String cwd = ftp.printWorkingDirectory(); |
|
|
|
|
|
// register also the root directory of the fileset if it matches |
|
|
|
|
|
// include and exclude patterns |
|
|
|
|
|
if (isIncluded("")) { |
|
|
|
|
|
if (!isExcluded("")) { |
|
|
|
|
|
dirsIncluded.addElement(""); |
|
|
|
|
|
} else { |
|
|
|
|
|
dirsExcluded.addElement(""); |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
dirsNotIncluded.addElement(""); |
|
|
|
|
|
} |
|
|
// always start from the current ftp working dir |
|
|
// always start from the current ftp working dir |
|
|
|
|
|
|
|
|
scandir(".", "", true); |
|
|
scandir(".", "", true); |
|
|
ftp.changeWorkingDirectory(cwd); |
|
|
ftp.changeWorkingDirectory(cwd); |
|
|
} catch (IOException e) { |
|
|
} catch (IOException e) { |
|
|