Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change mkdir for makedirs #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions aeroo-docs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ from configparser import ConfigParser
import sys
from jsonrpc2 import JsonRpcApplication
from wsgiref.simple_server import make_server
from os import path, listdir, mkdir, stat, unlink, kill, remove
from os import path, listdir, makedirs, stat, unlink, kill, remove
from signal import SIGQUIT
from threading import Thread, Event
from time import time, sleep
Expand Down Expand Up @@ -262,7 +262,7 @@ def start_daemon(args):
logger.info('Starting Aeroo DOCS process...')
#### Prepare spool directory
if not path.exists(args.spool_directory):
mkdir(args.spool_directory, mode=0o0700)
makedirs(args.spool_directory, mode=0o0700)
daemon = False
try:
if args.no_daemon:
Expand Down Expand Up @@ -326,7 +326,7 @@ if hasattr(args, 'config_file') and args.config_file is not None:
if input_var.capitalize() in ['Yes', 'Y']:
conf_dir = path.dirname(args.config_file)
if not path.exists(conf_dir):
mkdir(conf_dir, mode=0o0700)
makedirs(conf_dir, mode=0o0700)
try:
with open(args.config_file, 'w') as cf:
config.write(cf)
Expand All @@ -346,7 +346,7 @@ if hasattr(args, 'log_file'):
if not path.exists(args.log_file):
log_dir = path.dirname(args.log_file)
if not path.exists(log_dir):
mkdir(log_dir, mode=0o0700)
makedirs(log_dir, mode=0o0700)
filehandler = logging.FileHandler(args.log_file)
PRESERVE_FH.append(filehandler.stream.fileno())
filehandler.setLevel(logging.DEBUG)
Expand Down