babarot / gomi

🗑️ Replacement for UNIX rm command!
https://babarot.me/gomi
MIT License
317 stars 13 forks source link

`rename {source-path} {dest-path}: invalid cross-device link` by removing Windows files with WSL2 #38

Open aiya000 opened 3 months ago

aiya000 commented 3 months ago

Hi, thank you for giving good software :D

I have an SSIA problem. Below is representation.

(Starting WSL2 Shell)

$ cd /mnt/c/Users/foo/some-directory
$ gomi some-file
rename some-file /home/foo/.gomi/2024/08/20/{random-value}/some-file.{random-value}: invalid cross-device link

This is seriously unuseful...

I haven't develop with golang, but I found what maybe this error: https://qiita.com/pankona/items/8098fd94fa4d3fbe387b

Can you help me?