You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first command simply tries to reference /b (folder 'b' in the root directory of the OS). It fails because the directory you run kemono-dl from is ALWAYS appended to the front, so /b becomes {current directory}/b instead of root-directory/b.
The second command fails because kemono-dl tries to write debug.log in {current directory}.
Error messages and tracebacks
Off the first command, there are no errors, per se. Files download, but into the wrong directory (into /home/catthou/b/... instead of /b/...)
Off the second command, we crash because we can't write the log file to the root directory:
Dumping a file with a non-descriptive filename (debug.log) in a random directory is bad practice to begin with. At the very least it should try typical log directories (like /var/log or $XDG_CACHE_HOME/kemono-dl) and use a name that indicates who's writing it. $XDG_CACHE_HOME/kemono-dl/debug.log or /var/log/kemono-dl.log would be two practical, expected filenames for logs on linux.
The text was updated successfully, but these errors were encountered:
Version
Version: 2022-04-28
Your Command
Two particular commands fail.
The above command fails to write the file into /b/... and instead writes it into {current directory}/b/...
Next we try to cd into the root directory so {current directory}/b is /b, but this fails for a different reason:
Description of bug
The first command simply tries to reference /b (folder 'b' in the root directory of the OS). It fails because the directory you run kemono-dl from is ALWAYS appended to the front, so /b becomes {current directory}/b instead of root-directory/b.
The second command fails because kemono-dl tries to write debug.log in {current directory}.
Error messages and tracebacks
Off the first command, there are no errors, per se. Files download, but into the wrong directory (into /home/catthou/b/... instead of /b/...)
Off the second command, we crash because we can't write the log file to the root directory:
Additional comments
Dumping a file with a non-descriptive filename (debug.log) in a random directory is bad practice to begin with. At the very least it should try typical log directories (like /var/log or $XDG_CACHE_HOME/kemono-dl) and use a name that indicates who's writing it. $XDG_CACHE_HOME/kemono-dl/debug.log or /var/log/kemono-dl.log would be two practical, expected filenames for logs on linux.
The text was updated successfully, but these errors were encountered: