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. Ifremove==True, the file is moved rather than copied.If
filepathandservice_pathpaths are the same,uploaddeletes the file ifremove==Trueand returns.Parameters:
-