The seedbox.tasks.filesync
Module¶
SyncFile task plugin
Performs rsync of a file to a specified location.
-
class
seedbox.tasks.filesync.
SyncFile
(media_file)¶ Bases:
seedbox.tasks.base.BaseTask
Provides the capability of rsync file to a specified location.
-
cmd
¶ Constructed rsync command used for specified media file.
Returns: rsync command Return type: list
-
destination
¶ A property for accessing the destination to sync file to.
Returns: remote destination Return type: string
-
execute
()¶ Perform remote file copy for the provided media_file.
-
static
is_actionable
(media_file)¶ Perform check to determine if action should be taken.
Parameters: media_file – an instance of a MediaFile to check Returns: a flag indicating to act or not to act Return type: boolean
-