soyuka / dat-daemon

Dat as a daemon
MIT License
25 stars 3 forks source link

Update existing dat state #15

Closed mitar closed 6 years ago

mitar commented 6 years ago

I create empty dat repositories which if I run dat share get all files imported and shared.

But because I have many of such dat repositories I am trying to instead use dat daemon. But I noticed that it is not importing files. So if I do datdaemon add key directory where dat repository under directory is empty (not yet imported, but files are there) then nothing really happens.

soyuka commented 6 years ago

The daemon isn't calling importFiles (yet?) and if you want a writable dat, it must have been created with dat before being added to the daemon.

from the readme :) I'm not sure how I want to turn this yet.

soyuka commented 6 years ago

should be okay with --importFiles now

mitar commented 6 years ago

Oh, I missed that in the README.

Thanks for adding. Let me test it.

mitar commented 6 years ago

Oh, in fact hard to test because I do not know what is happening. I would need #14 for this first.

mitar commented 6 years ago

Hm, if a file is already added I cannot re-add it with --importFiles to just enable importing.

soyuka commented 6 years ago

Indeed this is an interesting issue where we should be able to "update" an existing state.

mitar commented 6 years ago

What is resolution here?

soyuka commented 6 years ago

Should be fine now and importFiles is done by default when adding something.