Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copying to additinal folders issue. #999

Open
Mario-P opened this issue Feb 12, 2024 · 2 comments
Open

Copying to additinal folders issue. #999

Mario-P opened this issue Feb 12, 2024 · 2 comments

Comments

@Mario-P
Copy link

Mario-P commented Feb 12, 2024

Bug Details

Describe the bug
When processing big number of files for a show that have additional folders set, the order of copy/move is broken. Files are not copied to additional folders as the source is removed (by move action) before the copy starts. Additionally sometimes even the folders are mixed up and File is moved to additional folder and only then there is a try to copy it to auto folder. It happens always when processing big number of files. I have not noticed it when processing few files.

Expected Behaviour
First copy the file, only then move it.

Current Behaviour
Example from the log file:
2024-02-10 19:16:47|INFO| TV Rename is about to be busy doing Do selected actions (80) since 10.02.2024 19:16:47 2024-02-10 19:16:47|INFO| ********************** 2024-02-10 19:16:47|INFO| Doing Selected Actions.... (80 items detected, 80 actions to be completed ) 2024-02-10 19:16:47|INFO| Setting up 'Move/Copy' worker, with 1 threads. 2024-02-10 19:16:47|INFO| Setting up 'Rename/Delete' worker, with 1 threads. 2024-02-10 19:16:47|INFO| Setting up 'Write Metadata' worker, with 4 threads. 2024-02-10 19:16:47|INFO| Setting up 'Download' worker, with 8 threads. 2024-02-10 19:18:29|INFO| Move completed: E:\series_to_process\Banshee.S01E01.Pilot.MULTi.1080p.HMAX.WEB-DL.H264-Mixio.mkv to Y:\Banshee (2013)\Season 1\Banshee - S01E01 - Pilot.mkv 2024-02-10 19:18:29|WARN| Error occurred while Copy: E:\series_to_process\Banshee.S01E01.Pilot.MULTi.1080p.HMAX.WEB-DL.H264-Mixio.mkv to F:\Seriale\Banshee (2013)\Season 1\Banshee - S01E01 - Pilot.mkv System.IO.FileNotFoundException: E:\series_to_process\Banshee.S01E01.Pilot.MULTi.1080p.HMAX.WEB-DL.H264-Mixio.mkv at Alphaleonis.Win32.Filesystem.Directory.ExistsDriveOrFolderOrFile(KernelTransaction transaction, String path, Boolean isFolder, Int32 lastError, Boolean throwIfDriveNotExists, Boolean throwIfFolderOrFileNotExists) at Alphaleonis.Win32.Filesystem.File.RestartCopyMoveOrThrowException(Int32 lastError, Boolean isFolder, Boolean isMove, KernelTransaction transaction, String sourcePathLp, String destinationPathLp, Nullable1 moveOptions)
at Alphaleonis.Win32.Filesystem.File.CopyMoveCore(KernelTransaction transaction, Boolean driveChecked, Boolean isFolder, String sourcePath, String destinationPath, Nullable1 copyOptions, Nullable1 moveOptions, Boolean preserveDates, CopyMoveProgressRoutine progressHandler, Object userProgressData, CopyMoveResult copyMoveResult, PathFormat pathFormat)
at Alphaleonis.Win32.Filesystem.File.Copy(String sourcePath, String destinationPath, CopyOptions copyOptions, Boolean preserveDates, CopyMoveProgressRoutine progressHandler, Object userProgressData)
at TVRename.ActionCopyMoveRename.Go(TVRenameStats stats, CancellationToken cancellationToken)
....
2024-02-10 19:29:50|INFO| Move completed: E:\series_to_process\Banshee.S01E10.A.Mixture.of.Madness.FiNAL.MULTi.1080p.HMAX.WEB-DL.H264-Mixio.mkv to F:\Seriale\Banshee (2013)\Season 1\Banshee - S01E10 - A Mixture of Madness.mkv
2024-02-10 19:29:50|WARN| Error occurred while Copy: E:\series_to_process\Banshee.S01E10.A.Mixture.of.Madness.FiNAL.MULTi.1080p.HMAX.WEB-DL.H264-Mixio.mkv to Y:\Banshee (2013)\Season 1\Banshee - S01E10 - A Mixture of Madness.mkv System.IO.FileNotFoundException: E:\series_to_process\Banshee.S01E10.A.Mixture.of.Madness.FiNAL.MULTi.1080p.HMAX.WEB-DL.H264-Mixio.mkv
at Alphaleonis.Win32.Filesystem.Directory.ExistsDriveOrFolderOrFile(KernelTransaction transaction, String path, Boolean isFolder, Int32 lastError, Boolean throwIfDriveNotExists, Boolean throwIfFolderOrFileNotExists)
at Alphaleonis.Win32.Filesystem.File.RestartCopyMoveOrThrowException(Int32 lastError, Boolean isFolder, Boolean isMove, KernelTransaction transaction, String sourcePathLp, String destinationPathLp, Nullable1 moveOptions) at Alphaleonis.Win32.Filesystem.File.CopyMoveCore(KernelTransaction transaction, Boolean driveChecked, Boolean isFolder, String sourcePath, String destinationPath, Nullable1 copyOptions, Nullable1 moveOptions, Boolean preserveDates, CopyMoveProgressRoutine progressHandler, Object userProgressData, CopyMoveResult copyMoveResult, PathFormat pathFormat) at Alphaleonis.Win32.Filesystem.File.Copy(String sourcePath, String destinationPath, CopyOptions copyOptions, Boolean preserveDates, CopyMoveProgressRoutine progressHandler, Object userProgressData) at TVRename.ActionCopyMoveRename.Go(TVRenameStats stats, CancellationToken cancellationToken)

  • Operating System:
    Windows 11
  • Are you using the windows version or command line version?
    I'm using windows version.

Additional context
Add any other context about the problem here.

XML Files

XMLFiles.zip

Log Files

TVRename.01.log

@Mario-P
Copy link
Author

Mario-P commented Feb 12, 2024

I've made some more tests. It stops working correctly already with 4 items to copy/move.

@Mario-P
Copy link
Author

Mario-P commented Feb 12, 2024

More tests and it looks like it does not work even with only 2 items to process :(. The probability of spotting this is less when less items are to be processed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant