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
filepath
andservice_path
paths are the same,upload
deletes the file ifremove==True
and returns.Parameters:
-