Пример #1
0
 def delete_file(self, filename):
     filePath = self._get_sub_path(filename)
     fileops.remove(filePath, fileops.FileType.FILE)
Пример #2
0
    def delete(self):
        if self._path is None or self._path == '':
            raise Exception('Cannot delete writer without path')

        fileops.remove(self._path, fileops.FileType.DIRECTORY)
        Writers.delete_writer(fileops.get_basename(self._path))