["updated_COO:-18.pdf", "updated__"" -13.pdf", "upload_pdf.py", "20186"+" -20 (1).pdf"]
updated_COO:-18.pdf
updated__"" -13.pdf
upload_pdf.py
20186"+" -20 (1).pdf
["/home/shenjianlin/test_pdf/20186"+" -20 (1).pdf"]
/home/shenjianlin/test_pdf/20186"+" -20 (1).pdf
Traceback (most recent call last):
File "upload_pdf.py", line 106, in <module>
up_load_pdf().post_file(url, csrf_token, file)
File "upload_pdf.py", line 57, in post_file
files = {"ReportForm[url]": (path.name, open(file_path, "rb"), mimetypes.types_map[path.suffix])}
PermissionError: [Errno 13] Permission denied: "/home/shenjianlin/test_pdf/20186"+" -20 (1).pdf"
I would like to ask whether this kind of file permissions can be obtained automatically through the program in addition to the accident of manually modifying file permissions.