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
Executing a task (tested with compress and unlock) and then downloading the file, result in messed name when saved on the disk.
the script is the following:
The file is saved under the expected directory, but the filename is the whole original file path plus compress/unlock
C:\download\dir\path\path_to_the_file_my_pdf_compress_19-11-2024.pdf
C:\download\dir\path\path_to_the_file_my_pdf_unlock_19-11-2024.pdf
the path \path\to\the\file has been converted and included as part of the filename
The text was updated successfully, but these errors were encountered:
Hi, I went through the source code, and found that it is indeed the intended behaviour, since the library is calling the clean_filename() function which simply replaces / with _ just before writing the file.
I'd like to know @AndyCyberSec's opinion on this, and if he agrees, I can push a fix which saves the filename as is or some other naming convention which is desired.
python 3.12.7 in windows 11
Executing a task (tested with compress and unlock) and then downloading the file, result in messed name when saved on the disk.
the script is the following:
I would expect the file to preserve the name but as from the console I get the following
The file is saved under the expected directory, but the filename is the whole original file path plus compress/unlock
C:\download\dir\path\path_to_the_file_my_pdf_compress_19-11-2024.pdf
C:\download\dir\path\path_to_the_file_my_pdf_unlock_19-11-2024.pdf
the path \path\to\the\file has been converted and included as part of the filename
The text was updated successfully, but these errors were encountered: