Closed vttc08 closed 7 months ago
To add on to the issue, the files will be deleted if the rsync job is interrupted by Ctrl-C
. The action does not stop the script from running, but instead stop the current running process which is rsync and the next line of the script will run which deletes everything. The Ctrl-C
is necessary to stop rsync from copying .fuse_hidden
files which are files that are deleted by some software are still using it.
In the script
api.sh
, when the folder path for the rsync command is invalid, the rsync command will fail. Since the script use rsync to copy and then delete the original to achieve "file moving", the files are deleted even though rsync did not copy anything.https://github.com/vttc08/movie-renamer/blob/79e190ab7381df3431240433732ddab8c0ffbefe/api.sh#L16-L17
.fuse_hidden*
is present