dat icon indicating copy to clipboard operation
dat copied to clipboard

Unable to bless a unix homedir with it's own a dat archive.

Open bhyde opened this issue 6 years ago • 2 comments

I have a large-ish project that resides on a server in it's own unix account, call that /home/my-awesom-project. Intending to create a dat archive for ~my-awesome-project, i began by creating a .datignore file. It looked like:

# Ignore everything to begin
*
# add back something small to start off
!doc

Running dat create was disappointing: IncompatibleError: Dat folder contains incompatible metadata. Please remove your metadata (rm -rf .dat" ... tis a shame that a ~/.datignore entry isn't sufficient to resolve that.`

Reasonable I guess, but not what's I'd visualized in my fantasies.

The dat cli (~/.dat/releases/dat-13.11.5-linux-x64/dat) was installed using the wget ... | bash technique; on Gnu/Linux.

Thanks to all for your efforts.

bhyde avatar Feb 17 '19 19:02 bhyde

Thanks for opening the issue!

The .dat directory at ~/.dat is used to store the write keys for all your dats. Unfortunately, we overlooked the idea that someone may want to share their home directory.

We definitely don't want people deleting that directory, so this error is really bad there. It'd be great to:

  • At least, change that error for the home directory.
  • We could also rename that directory or let it co-exist with a regular .dat directory.

I'll be happy to support anyone who want to take this on.

joehand avatar Feb 18 '19 19:02 joehand

What about moving ~/.dat into ~/.config/dat ?

palmeida avatar Feb 24 '19 18:02 palmeida