1
Windows에서 파일을 가지고 있는데이 파일을 리눅스에서 읽고 싶습니다. 아래 코드는 Windows에서 실행하려고 할 때 잘 작동하지만 리눅스에서 실행하려고하면 잘됩니다.아파치 공유 vfs를 사용하여 Windows에서 Linux로 원격 파일을 읽는 방법?
"Could not read from "file:///10.0.0.1/C$/myfolder/test.txt" because it is not a file."
여기 내 코드가 있습니다.
FileSystemOptions opts = new FileSystemOptions();
DefaultFileSystemConfigBuilder.getInstance().setUserAuthenticator(opts, auth);
FileObject fo = VFS.getManager().resolveFile(remoteFilePath, opts);
InputStream inputStream = fo.getContent().getInputStream(); //this line throws exception