commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 楊閔富 <tilu...@gmail.com>
Subject Re: Wondering VFS will support Read/Write on Google Cloud Storage?
Date Mon, 19 Jun 2017 07:39:46 GMT
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 <ecki@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message