feat: display path error
icyphox icyph0x@protonmail.com
Fri, 16 Mar 2018 09:31:19 +0530
1 files changed,
3 insertions(+),
2 deletions(-)
jump to
M
vite.py
→
vite.py
@@ -21,11 +21,12 @@ project_path = args.path[0]
def create_dirs(path): try: + abs_path = pathlib.Path(path).resolve() pathlib.Path(path + '/pages').mkdir(parents=True, exist_ok=False) pathlib.Path(path + '/build').mkdir(exist_ok=False) + print('Created project directory at %s.' % (abs_path)) except FileExistsError as e: - if e.errno != errno.EEXIST: - raise + print('Error: specified path exists.') def main(): create_dirs(project_path)