[
https://issues.apache.org/jira/browse/SSHD-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17544915#comment-17544915
]
Nadezhda Balkandzhiyska edited comment on SSHD-1267 at 6/1/22 1:51 PM:
-----------------------------------------------------------------------
Thanks, I was able to implement {{VirtualFileSystemFactory}} correctly, but it
turned out that on Windows, for example, the "/home" directory does not exist
when doing the following check in
{*}_RootedFileSystemProvider.newFileSystem(dir, Collections.emptyMap());_{*}:
{code:java}
Path root = ensureDirectory(path).toRealPath();{code}
It uses {*}_Files.isDirectory()_{*}, which checks the the path according to the
file system, but previously we had opportunity to use *_SshFile_* with custom
implementation for each functionality.
Maybe I'm wrong, but it seems to me that I can't achieve the same functionality
for Windows and Linux, such as:
{code:java}
/home
somefolder
somefolder{code}
was (Author: JIRAUSER289318):
Thanks, I was able to implement {{VirtualFileSystemFactory}} correctly, but it
turned out that on Windows, for example, the "/home" directory does not exist
when doing the following check in
{*}_RootedFileSystemProvider.newFileSystem(dir, Collections.emptyMap());_{*}:
{code:java}
Path root = ensureDirectory(path).toRealPath();{code}
It uses {*}_Files.isDirectory()_{*}, which checks the the path according to the
file system, but previously we had opportunity to use *_SshFile_* with custom
implementation for each functionality.
Maybe I'm wrong, but it seems to me that I can't achieve the same functionality
of Windows and Linux, such as:
{code:java}
/home
somefolder
somefolder{code}
> Apache Mina SFTP 2.8.0 Upgrade
> ------------------------------
>
> Key: SSHD-1267
> URL: https://issues.apache.org/jira/browse/SSHD-1267
> Project: MINA SSHD
> Issue Type: Question
> Affects Versions: 0.11.0, 0.14.0, 2.8.0
> Reporter: Nadezhda Balkandzhiyska
> Priority: Major
>
> I am trying to upgrade 0.14.0 sshd-core and 0.11.0 sshd-sftp to 2.8.0 version.
> Unfortunately I found that there are a lot of implementation changes, but I
> did not find a migration guide before version 2.0.0 (It would be great if
> someone could provide me with a migration guide from 0.11.0/0.14.0 to 2.0.0)
> The main problem I have is the lack of FileSystemView and SshFile since the
> previous version has file system independence and we use the ability for the
> root sub-directory of both Windows and Unix to be '/'.
> Now, when I try to run sftp server on Windows the Windows file system always
> redirects me to 'C:\'.
> I would be extremely grateful for some ideas on how I can migrate to the new
> version given the file system problem.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]