Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
a629d464
Commit
a629d464
authored
9 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
updated gridftp file transfer plugin for 8idi beamline
parent
9b9f0e67
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/python/dm/common/processing/plugins/gridftpFileTransferPlugin.py
+7
-4
7 additions, 4 deletions
...dm/common/processing/plugins/gridftpFileTransferPlugin.py
with
7 additions
and
4 deletions
src/python/dm/common/processing/plugins/gridftpFileTransferPlugin.py
+
7
−
4
View file @
a629d464
...
@@ -3,13 +3,16 @@
...
@@ -3,13 +3,16 @@
from
fileTransferPlugin
import
FileTransferPlugin
from
fileTransferPlugin
import
FileTransferPlugin
class
GridftpFileTransferPlugin
(
FileTransferPlugin
):
class
GridftpFileTransferPlugin
(
FileTransferPlugin
):
COMMAND
=
'
globus-url-copy -
v
'
COMMAND
=
'
globus-url-copy -
c -cd -r -vb -tcp-bs 512K -p 1 -sync -sync-level 2
'
def
__init__
(
self
,
src
=
None
,
dest
=
None
):
def
__init__
(
self
,
src
=
None
,
dest
=
None
,
command
=
GridftpFileTransferPlugin
.
COMMAND
):
FileTransferPlugin
.
__init__
(
self
,
self
.
COMMAND
,
src
,
dest
)
FileTransferPlugin
.
__init__
(
self
,
command
,
src
,
dest
)
def
getSrcUrl
(
self
,
filePath
,
dataDirectory
):
def
getSrcUrl
(
self
,
filePath
,
dataDirectory
):
srcUrl
=
'
file://%s
'
%
filePath
if
self
.
src
is
None
:
srcUrl
=
'
file://%s
'
%
filePath
else
:
srcUrl
=
'
%s/%s
'
%
filePath
return
srcUrl
return
srcUrl
def
getDestUrl
(
self
,
storageHost
,
storageDirectory
):
def
getDestUrl
(
self
,
storageHost
,
storageDirectory
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment