democritus-project / d8s-file-system

Democritus functions for working with files and directories.
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Consider using flags to specify whether path or name is returned #4

Open fhightower opened 3 years ago

fhightower commented 3 years ago

For example, rather than having directory_subdirectory_names and directory_subdirectory_paths, simply have directory_subdirectories(dir_path: str, return_paths: bool = False) where the return_paths flag determines whether the returned items are paths or file names.

This would involve consolidating and simplifying the code and interfaces in this library.

This ticket also involves changing the function calls in all of the democritus libraries that use these functions.

fhightower commented 3 years ago

This also applies to the directory_file_names_matching and directory_file_paths_matching functions.