|
|
@ -20,13 +20,6 @@ def path_translate( |
|
|
def is_folder(element): |
|
|
def is_folder(element): |
|
|
return element['mimeType'] == 'application/vnd.google-apps.folder' |
|
|
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): |
|
|
def split_path(path,rev=False): |
|
|
s = re.findall(r'(?:^/|[^/\x00]+)',path) |
|
|
s = re.findall(r'(?:^/|[^/\x00]+)',path) |
|
|
if rev: |
|
|
if rev: |
|
|
@ -34,11 +27,6 @@ def split_path(path,rev=False): |
|
|
else: |
|
|
else: |
|
|
return s |
|
|
return s |
|
|
|
|
|
|
|
|
if os.name == 'nt': |
|
|
|
|
|
local_split_path = split_path_nt |
|
|
|
|
|
else: |
|
|
|
|
|
local_split_path = split_path |
|
|
|
|
|
|
|
|
|
|
|
def without(node,*keys): |
|
|
def without(node,*keys): |
|
|
node_meta = set(node.keys()) |
|
|
node_meta = set(node.keys()) |
|
|
nope = set(keys) |
|
|
nope = set(keys) |
|
|
|