This commit is contained in:
Khoa Nguyen Anh
2018-03-02 22:52:48 +07:00
commit ccf26a8079
10 changed files with 370 additions and 0 deletions

13
common/get_content.py Normal file
View File

@ -0,0 +1,13 @@
import os
def get_content(source):
files = []
folders = []
for f in os.listdir(source):
if os.path.isfile(os.path.join(source, f)):
files.append(f)
else:
folders.append(f)
return files, folders