소스 검색

replace os.system(mkdir) with os.mkdir

master
myitinos 4 년 전
부모
커밋
9f5f5af5f8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      clone.py

+ 1
- 1
clone.py 파일 보기

@ -16,7 +16,7 @@ class Cloner:
def handleDir(self, dirPath: str):
backupDirPath = dirPath.replace(self.targetDir, self.backupDir)
if not os.path.isdir(backupDirPath):
os.system('mkdir {path}'.format(path=backupDirPath))
os.mkdir(backupDirPath)
with os.scandir(dirPath) as it:
for entry in it:
if entry.is_dir():

불러오는 중...
취소
저장