init
This commit is contained in:
13
common/get_content.py
Normal file
13
common/get_content.py
Normal 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
|
Reference in New Issue
Block a user