You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, artifact modules handle file opening and plist parsing directly, without consistent error handling. This can lead to module failures that stop the execution of the entire artifact when encountering issues.
Proposal
Implement two new utility functions in ilapfuncs.py:
Implement Safe File and Plist Handling Functions
Context
Currently, artifact modules handle file opening and plist parsing directly, without consistent error handling. This can lead to module failures that stop the execution of the entire artifact when encountering issues.
Proposal
Implement two new utility functions in
ilapfuncs.py
:get_file_content(file_path, binary_mode=False, encoding=None)
get_plist_content(file_path)
These functions will encapsulate file opening and plist parsing operations with proper error handling.
Benefits
Implementation Details
See attached ADR for full implementation details of both functions.
Discussion Points
Please review and provide feedback on this proposal.
https://github.com/abrignoni/iLEAPP/blob/lava-output/admin/docs/features/file_content_access_architecture.md
The text was updated successfully, but these errors were encountered: