You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
271 B
12 lines
271 B
3 years ago
|
import os
|
||
|
def CreateFolder(path):
|
||
|
del_path_space = path.strip()
|
||
|
del_path_tail = del_path_space.rstrip('\\')
|
||
|
is_exists = os.path.exists(del_path_tail)
|
||
|
if not is_exists:
|
||
|
os.makedirs(del_path_tail)
|
||
|
return True
|
||
|
else:
|
||
|
return False
|
||
|
|