-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added helper funtion to delete folders and files from folder
- Loading branch information
Showing
4 changed files
with
53 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import logging | ||
|
||
from hyo2.abc2.lib.logging import set_logging | ||
from hyo2.abc2.lib.package.pkg_helper import PkgHelper | ||
|
||
logger = logging.getLogger(__name__) | ||
set_logging(ns_list=["hyo2.abc2"]) | ||
|
||
folder_path = r"C:\code\hyo2\hyo2_grids" | ||
|
||
filter_files = ( | ||
r"desktop.ini", | ||
) | ||
filter_folders = ( | ||
r"__pycache__", | ||
) | ||
|
||
PkgHelper.clean_folder(folder=folder_path, filter_files=filter_files, filter_folders=filter_folders) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.