def unlink(self, filename, silent=False): '''Unlink filename from the file system. Give an error on failure.''' x = self ok = g.utils_remove(filename, verbose=not silent) if not ok: x.error('can not delete %s' % (filename), silent=silent) return ok
def unlink(self, filename, silent=False): """Unlink filename from the file system. Give an error on failure.""" x = self ok = g.utils_remove(filename, verbose=not silent) if not ok: x.error(f"can not delete {filename}", silent=silent) return ok