10 lines
251 B
Python
10 lines
251 B
Python
|
|
from __future__ import with_statement
|
||
|
|
import os
|
||
|
|
def create(directory):
|
||
|
|
with open(os.path.join(directory, "output.txt"), "w"):
|
||
|
|
pass
|
||
|
|
os.mkdir(os.path.join(directory, "docs"))
|
||
|
|
|
||
|
|
create(".") # current directory
|
||
|
|
create("/") # root directory
|