From 807470b9a222aac9779950044797fd264afcbc0a Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 17 Feb 2020 23:50:05 -0800 Subject: [PATCH] Remove spinal.is_subfolder function. Pathclass has in operator. --- voussoirkit/spinal.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/voussoirkit/spinal.py b/voussoirkit/spinal.py index 0286d87..9f077b1 100644 --- a/voussoirkit/spinal.py +++ b/voussoirkit/spinal.py @@ -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.