fsweeper icon indicating copy to clipboard operation
fsweeper copied to clipboard

os.Rename can't move files across drive letters and samba shares

Open maxiride opened this issue 3 years ago • 0 comments

https://github.com/reugn/fsweeper/blob/78f59e91210524441ec55ab76e80f65e3faeb7ae/rules/actions.go#L31

I've worked on a very similar task on a personal project and I've been browsing your code to get inspiration\places where I could improve my knowledge.

Care that os.Rename can't move files across different drives\shares on Windows. A full os.Copy and subsequent os.Remove is needed.

maxiride avatar Oct 11 '21 10:10 maxiride