Remove spinal.is_subfolder function. Pathclass has in operator.

master
Ethan Dalool 2020-02-17 23:50:05 -08:00
parent 7713e735cc
commit 807470b9a2
1 changed files with 0 additions and 8 deletions

View File

@ -500,14 +500,6 @@ def get_dir_size(path):
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):
'''
Return True if and only if one arg is truthy.