qcodes/data/io.py
def remove(self, filename):
        """Delete a file or folder and prune the directory tree."""
        path = self.to_path(filename)
        if os.path.isdir(path):
            shutil.rmtree(path)
        else:
            os.remove(path)

        filepath = os.path.split(path)[0]
        try:
            os.removedirs(filepath)
        except OSError:
            # directory was not empty - good that we're not removing it!
            pass
Delete a file or folder and prune the directory tree.
Delete a file or folder and prune the directory tree.
Delete a file or folder and prune the directory tree .
def remove(self, filename):
        path = self.to_path(filename)
        if os.path.isdir(path):
            shutil.rmtree(path)
        else:
            os.remove(path)
        filepath = os.path.split(path)[0]
        try:
            os.removedirs(filepath)
        except OSError:
            pass
def remove ( self , filename ) : path = self . to_path ( filename ) if os . path . isdir ( path ) : shutil . rmtree ( path ) else : os . remove ( path ) filepath = os . path . split ( path ) [ 0 ] try : os . removedirs ( filepath ) except OSError : pass
Delete a file or folder and prune the directory tree.
Delete a file or folder and prune the directory tree .
"""Delete a file or folder and prune the directory tree.""" # directory was not empty - good that we're not removing it!
self
filename