MCPcopy Index your code
hub / github.com/pyload/pyload / remove

Method remove

module/plugins/internal/Plugin.py:114–126  ·  view source on GitHub ↗
(self, path, trash=False)

Source from the content-addressed store, hash-verified

112 del frame
113
114 def remove(self, path, trash=False): # @TODO: Change to `trash=True` in 0.4.10
115 try:
116 remove(path, trash)
117
118 except (NameError, OSError), e:
119 self.log_warning(
120 _("Error removing `%s`") %
121 os.path.abspath(path), e)
122 return False
123
124 else:
125 self.log_info(_("Path deleted: ") + os.path.abspath(path))
126 return True
127
128 def set_permissions(self, path):
129 path = fs_encode(path)

Callers 6

_downloadMethod · 0.45
_check_downloadMethod · 0.45
check_duplicatesMethod · 0.45
_delete_tmpfileMethod · 0.45
decrypt_imageMethod · 0.45
run_tesserMethod · 0.45

Calls 4

log_warningMethod · 0.95
log_infoMethod · 0.95
removeFunction · 0.85
_Function · 0.50

Tested by

no test coverage detected