fix: resolve platform-dependent paths and OS-specific permissions (Issue #3)#16
fix: resolve platform-dependent paths and OS-specific permissions (Issue #3)#16PratyushNayak99 wants to merge 1 commit intoEAPD-DRB:mainfrom
Conversation
|
Thanks for this contribution @PratyushNayak99. The path anchoring approach you implemented here has been incorporated into the Closing as superseded. Your work helped inform the direction. Appreciate the effort. |
That makes total sense! I'm really glad my path anchoring approach was helpful in informing the broader mac-port overhaul. Looking forward to pulling that branch down and testing out the full cross-platform implementation. Thanks for the review, @SeaCelo |
Description
This PR refactors the backend to eliminate platform-dependent directory resolution and permission handling, aligning with the project's platform-independence goal.
os.path.abspathdirectory mapping inAPI/app.pyandConfig.pywith dynamicpathlibrouting anchored to__file__.os.chmod(..., 0o777)command in an OS-agnosticplatform.system()check to prevent host system crashes on strict Linux/Windows environments.Related Issue
Addresses #3
Validation Evidence
FileNotFoundError.PermissionErrorduringDATA_STORAGEinitialization.