Преглед на файлове

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():

Зареждане…
Отказ
Запис