Make FS paths configurable

This commit is contained in:
Alex Gleason committed 2025-10-23 14:50:05 -05:00
1 parent f89a481c9c
commit d75bd386aa
43 files changed
+393 -124

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { useAppContext } from '@/hooks/useAppContext';
/**
* Hook to access configured virtual filesystem paths
*
* @returns Object containing VFS path configurations
*/
export function useFSPaths() {
const { config } = useAppContext();
return {
/** Projects directory path (default: /projects) */
projectsPath: config.fsPathProjects,
/** Config directory path (default: /config) */
configPath: config.fsPathConfig,
/** Temporary files directory path (default: /tmp) */
tmpPath: config.fsPathTmp,
};
}