Skip to content

Commit 546aac1

Browse files
committed
refactor(folder_analyzer): simplify docstring for file listing method
This commit refactors the docstring of the 'list_all_files_in_dir' method in the FolderAnalyzerGenHook class. The previous detailed documentation was removed to streamline the code and focus on the essential purpose of the method. This change improves code readability and maintainability by reducing verbosity while still providing a brief overview of the method's functionality. The simplification aligns with best practices for documentation, ensuring that it remains concise and relevant without overwhelming the reader with excessive detail.
1 parent f1d5e46 commit 546aac1

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

penify_hook/folder_analyzer.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,7 @@ def __init__(self, dir_path: str, api_client: APIClient):
1212
super().__init__(dir_path, api_client)
1313

1414
def list_all_files_in_dir(self, dir_path: str):
15-
"""List all files in a directory and its subdirectories.
16-
17-
This function traverses the specified directory and its subdirectories,
18-
collecting the full paths of all files found. It ignores any directories
19-
that start with a dot (.), which are typically hidden directories in
20-
Unix-like operating systems. The resulting list contains the full paths
21-
of the files, making it useful for file management tasks.
22-
23-
Args:
24-
dir_path (str): The path to the directory to search for files.
25-
26-
Returns:
27-
list: A list of full file paths found in the specified directory and its
28-
subdirectories.
29-
"""
15+
"""List all files in a directory and its subdirectories."""
3016

3117
files = []
3218
for dirpath, dirnames, filenames in os.walk(dir_path):

0 commit comments

Comments
 (0)