Unfortunately, some other processes have trouble with this shortened path and will fail with file not found errors.
The solution to this problem lies in Python's pathlib module. Calling .resolve() on any Path will get you the fully elongated path!
To get the fully elongated path simply:
long_file_name = Path("C:\Users\STEPHE~1.BEA\AppData\Local\Temp\company_r85o5axn").resolve()
No comments:
Post a Comment