Skip to content

Commit

Permalink
Create a data_dir on the drive if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ddPn08 committed Jan 14, 2023
1 parent 3fbdcf4 commit c2251f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions automatic1111.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
" try:\n",
" drive.mount(drive_path, force_remount=force_remount)\n",
" data_dir_gdrive = \"/content/drive/MyDrive/AI/automatic1111\" # @param {type:\"string\"}\n",
" os.makedirs(data_dir_gdrive, exist_ok=True)\n",
" ! rm -Rf {data_dir} && ln -s {data_dir_gdrive} {data_dir}\n",
" mount_success = True\n",
" except:\n",
Expand Down

0 comments on commit c2251f1

Please sign in to comment.