We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 643945a commit bb3466aCopy full SHA for bb3466a
1 file changed
WorkingWithFiles.py
@@ -1,7 +1,7 @@
1
# !/usr/bin/python3
2
# coding: utf8
3
# @author Bulls90
4
-# v4.0
+# v4.1
5
# Importing modules
6
import os
7
import shutil
@@ -41,7 +41,7 @@ def classify_new_name():
41
msgInt += 1
42
msgName = msgName[:8] + str(msgInt)
43
newFileName = foldername + '\\' + msgName + '.xml'
44
- shutil.copy(os.path.join(src, f), newFileName)
+ shutil.move(os.path.join(src, f), newFileName)
45
46
47
# Creates folders by file name, and then moves the files to the corresponding folder keeping original filenames.
@@ -54,7 +54,7 @@ def classify():
54
foldername = topic + '_' + 'Status_' + status
55
if not os.path.exists(foldername):
56
os.mkdir(foldername)
57
- shutil.copy(os.path.join(src, f), foldername)
+ shutil.move(os.path.join(src, f), foldername)
58
59
60
def question():
0 commit comments