From d3c4cb63f555476db675d82a65547d65635c7c84 Mon Sep 17 00:00:00 2001 From: Giorgos Korfiatis <gkorf@grnet.gr> Date: Thu, 30 Jul 2015 18:38:08 +0300 Subject: [PATCH] Remove windows-specific actual path handling --- agkyra/syncer/localfs_client.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/agkyra/syncer/localfs_client.py b/agkyra/syncer/localfs_client.py index 037b85d..af4ff66 100644 --- a/agkyra/syncer/localfs_client.py +++ b/agkyra/syncer/localfs_client.py @@ -22,7 +22,6 @@ import time import filecmp import shutil import errno -import ctypes from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler @@ -156,19 +155,6 @@ def local_path_changes(settings, path, state, unhandled_equal=True): return live_info -def get_actual_windows_path(path): - SIZE = 1024 - buf = ctypes.create_unicode_buffer(SIZE) - rv = ctypes.windll.kernel32.GetShortPathNameW(path, buf, SIZE) - if rv == 0 or rv > SIZE: - raise ValueError('Error in computing short %s' % rv) - short = buf.value - rv = ctypes.windll.kernel32.GetLongPathNameW(short, buf, SIZE) - if rv == 0 or rv > SIZE: - raise ValueError('Error in computing long %s' % rv) - return buf.value - - def is_actual_path(path): prefix = path.rstrip(os.path.sep) while True: -- GitLab