Browse Source

Local path split was not necessary

event_class
Raphael Roberts 7 years ago
parent
commit
78cb11b475
  1. 12
      gapi/drive_api.py

12
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)

Loading…
Cancel
Save