20 lines
376 B
Python
20 lines
376 B
Python
import os
|
|
import shutil
|
|
from pathlib import Path
|
|
|
|
TEST_FOLDER = ".test_folder"
|
|
|
|
|
|
def create_file(file):
|
|
Path(os.path.join(TEST_FOLDER, file)).touch()
|
|
|
|
|
|
def delete_folder():
|
|
shutil.rmtree(TEST_FOLDER, ignore_errors=True)
|
|
|
|
|
|
def create_folders():
|
|
delete_folder()
|
|
os.makedirs(os.path.join(TEST_FOLDER, '001', '001'))
|
|
os.makedirs(os.path.join(TEST_FOLDER, '002', '001'))
|