Remove spinal.is_subfolder function. Pathclass has in operator.

This commit is contained in:
Ethan Dalool 2020-02-17 23:50:05 -08:00
parent 7713e735cc
commit 807470b9a2

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.