-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes related to File Provider #30
base: main
Are you sure you want to change the base?
Conversation
def clone_directory_structure(self, source_path: Path, destination_path: Path): | ||
shutil.copytree(source_path, destination_path) | ||
|
||
def get_environment_variable(self, env_key: str, default_value: str) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jayamala17 I may have missed this discussion, but why is the file provider responsible for environment variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the os.getenv calls to the FileProvider class because it was using the os module for file operations, and it seemed logical to centralize all related functionality in one place. However now I believe that environment variable handling should be separated from file operations.
Filesystem operations (e.g., copying, deleting, creating directories) will remain in the FileProvider since they directly interact with the file system. Currently, I have path manipulation operations (e.g., joining, normalizing paths) in FileProvider. Would it be better to move these to a separate utility class, or should they remain in FileProvider for easier maintainability?
Filesystem Operations in
FileProvider
Path ManipulationOperations in
FileProvider