Fix file is not a cloud file

This commit is contained in:
2024-07-20 16:40:45 +08:00
parent a45215497f
commit b1016b029e

View File

@@ -92,7 +92,9 @@ def hydrate_file(s: str):
except OSError as e:
if GetLastError() != ERROR_INVALID_FUNCTION:
CfCloseHandle(h)
raise e
# File is not cloud file
if e.winerror != -2147024520:
raise e
CfCloseHandle(h)