Status update
A small update for superfans of SAFE Drive. Note, as of 11th October these features have been merged into master. One notable missing feature is mkdir/rmdir, which I am working on next.
I have file create, update, delete and rename working so after mounting your SAFE Drive, from the shell you can do stuff like:
$ cd ~/SAFE
$ ls
_public _publicNames
$ ls _public
rsapps
$ ls _public/rsapps
www-root
$ cd _public/rsapps/www-root
$ ls
index.html
$ echo 'Hello world' > test.txt
$ cat test.txt
Hello world
$ cp test.txt test2.txt
$ ls
index.html test.txt test2.txt
$ cat test2.txt
Hello world
$ rm test.txt
$ ls
index.html test2.txt
I recommend not opening your SAFE drive in a file manager. This will almost certainly hang, or at least behave as if it has as soon as you open a folder or two. Really it is just making an endless series of calls to get status on everything in sight which will slow everything down even on a powerful computer.
Also, it will probably fail if you try saving from an application like an editor. (See update on this at the end of this post).
Files should load into applications OK, but saving will both be slow and then fail if the app tries to save safely (using file rename, because that is not implemented yet). And of course the application’s file open dialog is a file explorer, so best to open using the command line (eg gedit ~/SAFE/_public/rsapps/www-root/index.html
).
You can create and access files on your SAFE public storage, but many things will just not work.
So this is only for the very curious, or the person who wants to help find bugs. And certainly not for trusting with any valuable data!
Please let me know if you have a play. There isn’t a release build of this so you will have to grab the master
dev-savefile
branch in both safenetworkjs and safenetwork-fuse repos, and in the latter run with node run bin.js
- see the repo for instructions, or ask if you need help.
Windows
@bzee has some success on Windows today, so watch this space. I think all he did was change the drive setting in bin.js from I:\ to M:\ so anyone in Windows could try this after installing the dependencies (just Dokany I think - again, see the repo for instructions).
Mac OSX
SAFE Drive is asking the browser for authorisation but not receiving the acceptance. We have though called @joshuef back from Japan to look into this , so hopeful Mac testing will also be possible soon.
Update: today I implemented rename, so you can also use ‘mv’ to rename files or move them to an existing directory. Unfortunately gedit
file editor still doesn’t work, but vi
at least is happy to edit files. Note that it does not support renaming of directories because it would be difficult to implement for little benefit, because the way SAFE NFS works, renaming directories could create problems by quickly filling up a container with deleted entries, and prevent you from adding new files.