Yesterdays commits to safe-api introduced support for dot files adding to the empty dir capability of the day before.
Here is a wee site to crudely demonstrate these features safe://dotemptytest
I will continue to play around with this , so don’t be shocked if bits are broken when you look at it.
Yesterday I was working on something similar adding to an existing site when I noticed possible anomalies in the way the css was (not) being synced. I will continue to mess with that so you may see the version number rising quite quickly. I will change the background colour as a shorthand to myself to test the css updates.
Pethaps have an empty folder… and a file called .
and perhaps …
Edit discourse making two dots into three! On a mobile there is advantage not having the index.html for seeing the file listing… atm bug has mobile browser show xorurl and not real filename. So, can’t check what is there. Looks good through
willie@gagarin:~/projects/maidsafe/local_sites/testArea$ touch ./.
willie@gagarin:~/projects/maidsafe/local_sites/testArea$ ls -al
total 40
drwxrwxr-x 8 willie willie 4096 May 23 13:34 .
drwxr-xr-x 23 willie willie 4096 May 23 13:33 …
drwxrwxr-x 5 willie willie 4096 May 23 13:17 assets
drwxrwxr-x 2 willie willie 4096 Apr 8 2017 css
drwxrwxr-x 2 willie willie 4096 May 23 12:16 empty
-rw-rw-r-- 1 willie willie 259 May 23 00:29 .file.html
drwxrwxr-x 2 willie willie 4096 May 23 00:26 .hidden
drwxrwxr-x 2 willie willie 4096 May 23 12:42 img
-rw-rw-r-- 1 willie willie 478 May 23 13:14 index.html
drwxrwxr-x 2 willie willie 4096 May 23 13:17 js
the first line is the directory itself, the second line is the parent
EDIT Hey thats weird - I see what you mean about discourse turning 2 dots into three - look carefully at the cut n pasted dir listing above.
Now look at the screenshot
Yes I think its time to file an issue. I am always reluctant to do this in case it is something stupid I did myself but I am pretty sure now that there is a problem that needs looked at.
Yes but there are still issues with sync not syncing - or me misusing it…
I am off to read again about the equivalence between a File Container XORURL and the NRS name that is linked to it. Are they ALWAYS the same?
I’m assuming you’re on baby Fleming? I think Gabriel already mentioned there are known issues with vaults not syncing 100% properly at all times in baby Fleming. Work on CRDT will solve these issues.
I think you just forgot to update your NRS name to latest version of the FilesContainer, which you could have done with --update-nrs when doing safe files sync, but you can still do it now with safe nrs add dotemptytest --link safe://hnyynyi6si48xqwnbmzgs1ikrwh7wa3qu5qamcm59cryjps9xtsgdztd1abnc?v=4
The FilesContainer is up to date with your local copy, just the NRS name is not linking to latest version of the FilesContainer but to version 0 as you can see in your safe dog safe://dotemptytest output.