-
Notifications
You must be signed in to change notification settings - Fork 0
Chuck-man/Laba3
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
import os
import shutil
import csv
def copying_dataset(path: str, path_copier: str):
"""Функция принимает путь к файлам: path и путь к новой директории: path_new"""
if not os.path.exists(path_copier):
os.mkdir(path_copier)
source = os.listdir(path + "/")
data = []
for i in source:
source_data = os.listdir(path + "/" + i)
for j in source_data:
shutil.copy(os.path.join(path + "/" + i, j), os.path.join(path_copier + "/", i + "__" + j))
def main():
copying_dataset("dataset", "dataset_copier")
if __name__ == "__main__":
main()
About
No description, website, or topics provided.
Stars
Watchers
Forks
Releases
No releases published