-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent download hang if filename exceeds fs limit
If the name template ends up generating a path where the filename itself exceeds the limits of the file system (e.g. 255 characters for NTFS on Windows, 255 bytes for most Linux filesystems), the try..catch block to handle race-condition file moves in MoveToSaveFolder unhelpfully ends up causing an infinite loop. Add a test for the correct behaviour of an IOException being thrown and adjust MoveToSaveFolder to check for the existence of a file in the destination path if an IOException has been caught, re-throwing if it has been thrown for a different reason. Resolves issue #259.
- Loading branch information
Showing
3 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters