flexget.plugins.operate.free_space module#
- class flexget.plugins.operate.free_space.PluginFreeSpace[source]#
Bases:
objectAborts a task if an entry is accepted and there is less than a certain amount of space free on a drive.
- schema = {'oneOf': [{'type': 'number'}, {'additionalProperties': False, 'dependentRequired': {'host': ['user', 'ssh_key_filepath', 'path']}, 'properties': {'abort_if': {'default': 'below', 'enum': ['below', 'above'], 'type': 'string'}, 'allotment': {'default': -1, 'type': 'number'}, 'host': {'type': 'string'}, 'path': {'type': 'string'}, 'port': {'default': 22, 'type': 'integer'}, 'space': {'oneOf': [{'type': 'number'}, {'format': 'size', 'type': 'string'}]}, 'ssh_key_filepath': {'type': 'string'}, 'user': {'type': 'string'}}, 'required': ['space'], 'type': 'object'}]}#