mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix backup in directory format on Windows.
This commit is contained in:
@@ -223,6 +223,8 @@ if IS_WIN:
|
||||
buf_size = len(_path)
|
||||
while True:
|
||||
res = ctypes.create_unicode_buffer(buf_size)
|
||||
# Note:- _GetShortPathNameW may return empty value
|
||||
# if directory doesn't exist.
|
||||
needed = _GetShortPathNameW(_path, res, buf_size)
|
||||
|
||||
if buf_size >= needed:
|
||||
|
||||
Reference in New Issue
Block a user