Skip to content

Commit

Permalink
added filename to findDir path when shutil.move
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpmcmanus committed Jul 7, 2023
1 parent 263a28a commit 84d414a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kalpana/kalpana.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,10 @@ def main(args):
# create cog
# move cog tiff to final directory
finalPathFile = glob.glob(outputDir+'*_epsg4326.tif')[0]
finalFile = finalPathFile.split('/')[-1]

try:
shutil.move(finalPathFile, finalDir)
shutil.move(finalPathFile, finalDir+finalFile)
logger.info('Created cog file '+finalPathFile+' and move to '+finalDir+' directory.')
except OSError as err:
logger.error(err)
Expand Down

0 comments on commit 84d414a

Please sign in to comment.