File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 22
33import asyncio
44import shutil
5- import os
65from dataclasses import dataclass , field
76from enum import Enum
87from pathlib import Path
@@ -60,18 +59,17 @@ def path(self) -> str:
6059
6160 def init (self ) -> None :
6261 self .dst_directory .mkdir (parents = True , exist_ok = True )
63- os .chmod (self .dst_directory , 0o777 )
64-
62+
6563 dest_path = self .dst_directory / self .name
6664 if dest_path .exists ():
6765 shutil .rmtree (dest_path )
68-
66+
6967 dest = shutil .copytree (
7068 src = self .src_directory ,
7169 dst = dest_path ,
7270 ignore = shutil .ignore_patterns (".git" , * self .directories_to_ignore ),
7371 )
74-
72+ dest_path . chmod ( 0o755 )
7573 print (dest )
7674
7775 self ._repo = GitRepoManager (str (Path (self .dst_directory / self .name )), branch = self .initial_branch )
You can’t perform that action at this time.
0 commit comments