From 78cb11b4750596cfd1d7bfdf861678f5d3f66da4 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Sun, 18 Nov 2018 00:52:16 -0600 Subject: [PATCH] Local path split was not necessary --- gapi/drive_api.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gapi/drive_api.py b/gapi/drive_api.py index c363714..ef067ef 100644 --- a/gapi/drive_api.py +++ b/gapi/drive_api.py @@ -20,13 +20,6 @@ def path_translate( def is_folder(element): return element['mimeType'] == 'application/vnd.google-apps.folder' -def split_path_nt(path,rev=False): - s = re.findall(r'?:[a-zA-Z]:\\)|[^/\\\?%\*:\|\"\<\>]+',path) - if rev: - return s[::-1] - else: - return s - def split_path(path,rev=False): s = re.findall(r'(?:^/|[^/\x00]+)',path) if rev: @@ -34,11 +27,6 @@ def split_path(path,rev=False): else: return s -if os.name == 'nt': - local_split_path = split_path_nt -else: - local_split_path = split_path - def without(node,*keys): node_meta = set(node.keys()) nope = set(keys)