예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 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