Buckets:
| import { createMemo } from "solid-js" | |
| import { useProject } from "./project" | |
| import { useSync } from "./sync" | |
| import { abbreviateHome } from "../runtime" | |
| import { useTuiPaths } from "./runtime" | |
| export function useDirectory() { | |
| const project = useProject() | |
| const sync = useSync() | |
| const paths = useTuiPaths() | |
| return createMemo(() => { | |
| const directory = project.instance.path().directory || paths.cwd | |
| const result = abbreviateHome(directory, paths.home) | |
| if (sync.data.vcs?.branch) return result + ":" + sync.data.vcs.branch | |
| return result | |
| }) | |
| } | |
Xet Storage Details
- Size:
- 567 Bytes
- Xet hash:
- 5ecfb19f88c96be2a55c5855ef24f71c2ad21e00950a20e722e8a96f05fd4b65
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.