hypercore-protocol / cli

A CLI for peer-to-peer file sharing using the Hypercore Protocol.
MIT License
206 stars 17 forks source link

Error when syncing folder with symlink #58

Open ghost opened 2 years ago

ghost commented 2 years ago

Creating a hyperdrive which contains a soft link returns an error.

mkdir -p a/b
touch a/file.txt
(cd a/b; ln -s ../file.txt)
hyp sync a
# Syncing...
# Comparing...
# Error: Aborting file-tree comparison, a symlink or hardlink loop was detected at /b/file.txt

However it works when using a differently named symlink.

mkdir -p a/b
touch a/file.txt
(cd a/b; ln -s ../file.txt file2.txt)
hyp sync a
# Syncing...
# Synced