We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b18222 commit cd6eae8Copy full SHA for cd6eae8
backup_automater_services.py
@@ -26,6 +26,6 @@
26
for file_name in open(conffilename): # Walk through the configuration file
27
fname = file_name.strip() # Strip out the blank lines from the configuration file
28
if fname: # For the lines that are not blank
29
- sourcefile = os.path.join(sourcedir, file_name.strip()) # Get the name of the source files to backup
30
- destfile = os.path.join(destdir, file_name.strip()) # Get the name of the destination file names
+ sourcefile = os.path.join(sourcedir, fname) # Get the name of the source files to backup
+ destfile = os.path.join(destdir, fname) # Get the name of the destination file names
31
shutil.copytree(sourcefile, destfile) # Copy the directories
0 commit comments