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

Null values in folder path cause "System.IO.DirectoryNotFoundException: Could not find a part of the path." #167

Closed
TipsyOne opened this issue Dec 4, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@TipsyOne
Copy link

TipsyOne commented Dec 4, 2021

While using <series> and <series#> tags in the custom folder path, these values will be null if the book isn't part of a series.

Instead of ignoring or replacing the null value the software throws an error after the download completes, and doesn't allow you to mark it as finished.

libation

From Settings.json:
"FolderTemplate": "<author>\\<title short> - <author> - <series> <series#>",

From log:

2021-12-04 11:22:45.305 -07:00 [ERR] (at FileManager.FileUtility+<>c__DisplayClass25_0.<SaferMove>b__0()) Failed to move file
System.IO.DirectoryNotFoundException: Could not find a part of the path.

Log202112.log
Settings.json.txt

@rmcrackan rmcrackan added the bug Something isn't working label Dec 6, 2021
@rmcrackan
Copy link
Owner

Weird. It should omit nulls and blank folders. Does this only happen for you when there's no series present?

@TipsyOne
Copy link
Author

TipsyOne commented Dec 7, 2021

Yes, it works normally when there's a series name listed.

To clarify, when the value is null it creates the folder correctly with the null values blanked. This error is only generated at the end when it tries (and fails) to move the decrypted files into the new folder.

@TipsyOne
Copy link
Author

TipsyOne commented Dec 7, 2021

It looks like it only happens (so far) when the null is at the end of the string and preceded by a space.

Working:
<author>\<series> <series#> - <title short> - <author>
<author>\<title short> - <author><series#>

Error:
<author>\<title short> - <author> - <series> <series#>
<author>\<title short> - <author> - <series>
<author>\<title short> - <author> - <series#>

@rmcrackan
Copy link
Owner

Stellar bug reporting. I need more like you at my job. Fixed in version v6.6.1. Thanks again for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants