Skip to content
Snippets Groups Projects
Commit 6f760af5 authored by sveseli's avatar sveseli
Browse files

final fix for filenames with columns

parent 71b1ddf7
No related branches found
No related tags found
No related merge requests found
......@@ -34,15 +34,15 @@ class FileTransferPlugin(FileProcessor):
self.start(src=srcUrl, dest=destUrl, templateInfo=fileInfo)
def getSrcUrl(self, filePath, dataDirectory):
return filePath
srcUrl = '%s/./%s' % (dataDirectory, os.path.relpath(filePath, dataDirectory))
return srcUrl
def getDestUrl(self, filePath, dataDirectory, storageHost, storageDirectory):
# Use relative path with respect to data directory as a source
srcDir = os.path.dirname(os.path.relpath(filePath, dataDirectory))
if self.dest:
destUrl = '%s/%s/' % (self.dest, srcDir)
destUrl = '%s/' % (self.dest, srcDir)
else:
destUrl = '%s:%s/%s/' % (storageHost, storageDirectory, srcDir)
destUrl = '%s:%s/' % (storageHost, storageDirectory)
return destUrl
def getSrcDirUrl(self, dataDirectory):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment