(self, path: PATH_TYPES, dry_run: bool = False)
return 0
Delete the provided path, recursively if necessary.
Delete the provided path, recursively if necessary.
Delete the provided path recursively if necessary .
def delete_file(self, path: PATH_TYPES, dry_run: bool = False) -> int:
        """Delete the provided path, recursively if necessary."""
        if not isinstance(path, pathlib.Path):
            path = pathlib.Path(path)
        log_prefix = "[DRY RUN] " if dry_run else ""
        logger.info(f"{log_prefix}Removing file: {path!s}")
        if not dry_run:
            path.unlink()
        return 0
def delete_file ( self , path : PATH_TYPES , dry_run : bool = False ) -> int : if not isinstance ( path , pathlib . Path ) : path = pathlib . Path ( path ) log_prefix = "[DRY RUN] " if dry_run else "" logger . info ( f"{log_prefix}Removing file: {path!s}" ) if not dry_run : path . unlink ( ) return 0