Skip to content

Commit

Permalink
extract. tested.
Browse files Browse the repository at this point in the history
  • Loading branch information
takotab committed Apr 2, 2019
1 parent 19a741e commit d4de4a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloudfile/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ def extract(file: str):


def in_subfolder(file):

spllitted = file.split(os.sep)[:-1]
if len(spllitted) == 0:
return False
if len(spllitted) > 1:
return True

if spllitted != ["."]:
return True
return False

0 comments on commit d4de4a3

Please sign in to comment.