cli icon indicating copy to clipboard operation
cli copied to clipboard

Error when syncing folder with symlink

Open ghost opened this issue 3 years ago • 0 comments

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

ghost avatar Feb 08 '22 17:02 ghost