I think the gcsfuse mounted directory cannot even be identified by Java, I'll report this issue to `gcsfuse` community.
2017-06-19 15:39 GMT+08:00 楊閔富 <tilu...@gmail.com>: > Hi > > I've tried and the log is as follows: > > ``` > $ ls -al /tmp/gcs > total 0 > drwxrwxrwx 1 root root 0 Jun 19 07:37 hive-warehouse > drwxrwxrwx 1 root root 0 Jun 19 07:37 softwares > drwxrwxrwx 1 root root 0 Jun 19 07:37 zeppelin-notebooks > $ sudo java -cp apache-vfs-debug-1.0-SNAPSHOT-jar-with-dependencies.jar > Sample "file:///tmp" > Jun 19, 2017 7:38:20 AM org.apache.commons.vfs2.impl.StandardFileSystemManager > info > INFO: Using "/tmp/vfs_cache" as temporary files store. > true > /tmp exists: true, is dir: true, is file: false, norm: /tmp, len: 4096 > $ sudo java -cp apache-vfs-debug-1.0-SNAPSHOT-jar-with-dependencies.jar > Sample "file:///tmp/gcs" > Jun 19, 2017 7:38:26 AM org.apache.commons.vfs2.impl.StandardFileSystemManager > info > INFO: Using "/tmp/vfs_cache" as temporary files store. > false > /tmp/gcs exists: false, is dir: false, is file: false, norm: /tmp/gcs, > len: 0 > ``` > > 2017-06-19 3:43 GMT+08:00 Bernd <e...@zusammenkunft.net>: > >> Thanks for the try. >> >> This is pretty strange since your mount path looks simple and VFS file: >> provider is not doing much besides using normal Java API to access the >> filesystem. so this looks more like a Java/fuse/gcs-fuse problem. >> >> Can you try >> >> File f = new File("/tmp/gcs"); Systen,out.println("f exists" + f.exists() >> + >> " is dir " + f.isDirectory() + " is file " + f.isFile() + " norm " + >> f.getCanonicalPath() + " len " + f.length()) >> >> So we can see what the responses are? >> >> Gruss >> Bernd >> > >