Issues
Sentry Issue: NUXEO-DRIVE-V8
PermissionError: [WinError 32] Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus: 'D:\\Users\\USER\\.nuxeo-drive\\edit\\DOCUID_files-files-1-file\\FILE.xls' (3 additional frame(s) were not displayed) ... File "nxdrive\autolocker.py", line 135, in _lock_file File "nxdrive\direct_edit.py", line 107, in autolock_lock File "nxdrive\client\local_client.py", line 736, in get_path File "pathlib.py", line 1141, in resolve File "pathlib.py", line 193, in resolve Unhandled error
Sentry Issue: NUXEO-DRIVE-V7
PermissionError: [WinError 32] Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus: 'C:\\Users\\USER\\Documents\\Nuxeo Drive\\FILE.doc' (1 additional frame(s) were not displayed) ... File "nxdrive\client\local_client.py", line 745, in abspath File "nxdrive\utils.py", line 520, in safe_long_path File "nxdrive\utils.py", line 428, in normalized_path File "pathlib.py", line 1141, in resolve File "pathlib.py", line 193, in resolve Pair error
Pathlib.Path.resolve() will raise a PermissionError when the file is opened elsewhere. This is not convenient as we only want to get the full path (without any action).
We could fallback on using pathlib.Path.absolute() is that case. This may be problematic when using symlinks, but as of now there is no such files in Drive.