def rm(self, fname=None):
        """Remove a file, don't raise exception if file does not exist.
        """
        if fname is not None:
            return (self / fname).rm()
        try:
            self.remove()
        except OSError:
            pass
def rm ( self , fname = None ) : if fname is not None : return ( self / fname ) . rm ( ) try : self . remove ( ) except OSError : pass
Remove a file, don't raise exception if file does not exist.