Remove spinal.is_subfolder function. Pathclass has in operator.
This commit is contained in:
parent
7713e735cc
commit
807470b9a2
1 changed files with 0 additions and 8 deletions
|
@ -500,14 +500,6 @@ def get_dir_size(path):
|
||||||
|
|
||||||
return total_bytes
|
return total_bytes
|
||||||
|
|
||||||
def is_subfolder(parent, child):
|
|
||||||
'''
|
|
||||||
Determine whether parent contains child.
|
|
||||||
'''
|
|
||||||
parent = normalize(pathclass.Path(parent).absolute_path) + os.sep
|
|
||||||
child = normalize(pathclass.Path(child).absolute_path) + os.sep
|
|
||||||
return child.startswith(parent)
|
|
||||||
|
|
||||||
def is_xor(*args):
|
def is_xor(*args):
|
||||||
'''
|
'''
|
||||||
Return True if and only if one arg is truthy.
|
Return True if and only if one arg is truthy.
|
||||||
|
|
Loading…
Reference in a new issue