You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Sergey Vladimirov (JIRA)" <ji...@apache.org> on 2006/12/12 08:40:24 UTC
[jira] Commented: (VFS-97) M$ FTP Virtual Folder support
[ http://issues.apache.org/jira/browse/VFS-97?page=comments#action_12457613 ]
Sergey Vladimirov commented on VFS-97:
--------------------------------------
Addition:
Check if possible not to disconnect. It is possible if we can restore working directory after testChangeDirectory():
public boolean testChangeDirectory(String relPath) throws IOException {
boolean disconnect = true;
Boolean userDirIsRoot = FtpFileSystemConfigBuilder.getInstance()
.getUserDirIsRoot(fileSystemOptions);
if (getRoot().getPath() != null
&& (userDirIsRoot == null || !userDirIsRoot.booleanValue())) {
disconnect = false;
}
try {
FTPClient ftpClient = getFtpClient();
boolean result = ftpClient.changeWorkingDirectory(relPath);
if (!disconnect) {
if (!ftpClient.changeWorkingDirectory(getRoot().getPath())) {
throw new FileSystemException(
"vfs.provider.ftp/change-work-directory.error",
getRoot().getPath());
}
} else {
disconnect();
}
return result;
} catch (IOException e) {
disconnect();
FTPClient ftpClient = getFtpClient();
try {
boolean result = ftpClient.changeWorkingDirectory(relPath);
return result;
} finally {
disconnect();
}
}
}
> M$ FTP Virtual Folder support
> -----------------------------
>
> Key: VFS-97
> URL: http://issues.apache.org/jira/browse/VFS-97
> Project: Commons VFS
> Issue Type: New Feature
> Environment: current CVS version, 1.0-RC8
> Reporter: Sergey Vladimirov
> Fix For: 1.1 Final
>
> Attachments: patch-testcase.txt, patch.txt, patch.txt, patch.txt
>
>
> FTP Object should return child by name, even if it's name of unlisted virtual directory.
> IIS support creation FTP virtual folders. Such foldres is not listed in LS command, but can be accessed by name (CWD/LS) as well as files in it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org