datafs.services package

Submodules

datafs.services.service module

class datafs.services.service.DataService(fs)[source]

Bases: object

upload(filepath, service_path, remove=False)[source]

“Upload” a file to a service

This copies a file from the local filesystem into the DataService’s filesystem. If remove==True, the file is moved rather than copied.

If filepath and service_path paths are the same, upload deletes the file if remove==True and returns.

Parameters:
  • filepath (str) – Relative or absolute path to the file to be uploaded on the user’s filesystem
  • service_path (str) – Path to the destination for the file on the DataService’s filesystem
  • remove (bool) – If true, the file is moved rather than copied

Module contents