radical-cybertools / radical.saga

A Light-Weight Access Layer for Distributed Computing Infrastructure and Reference Implementation of the SAGA Python Language Bindings.
http://radical-cybertools.github.io/saga-python/
Other
83 stars 34 forks source link

STAGE-IN: permission not preserved #862

Open AymenFJA opened 1 year ago

AymenFJA commented 1 year ago

If I stage in a file from the client--> agent side that has the execute permission, the file loses the permission when it's moved.

Example:

td.input_staging  = [{'source': master_path,
                                  'target': 'raptor_master.py',
                                  'action': rp.TRANSFER,
                                  'flags' : rp.DEFAULT_FLAGS},
                                 {'source': worker_path,
                                  'target': 'raptor_worker.py',
                                  'action': rp.TRANSFER,
                                  'flags' : rp.DEFAULT_FLAGS},
                                 {'source': self.rpex_cfg,
                                  'target': os.path.basename(self.rpex_cfg),
                                  'action': rp.TRANSFER,
                                  'flags' : rp.DEFAULT_FLAGS}]

raptor_master.py is executable, but when moved to the agent side, it loses that.