Documentation
¶
Overview ¶
Package workspace owns JCode-managed local working directories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateScratch ¶
CreateScratch creates one private workspace named YYYY-MM-DD-NNN. The sequence is scoped to the local calendar day and allocated with an exclusive mkdir, so concurrent creators can race safely without a shared counter file.
func ScratchRoot ¶
func ScratchRoot() string
ScratchRoot returns the directory that contains JCode-managed, no-project workspaces. It follows config.ConfigDir so isolated HOME test environments never touch a user's real ~/.jcode directory.
func ValidateScratchPath ¶
ValidateScratchPath verifies that path is an existing, real directory created directly beneath ScratchRoot with the managed date/sequence name. Persisted metadata marked scratch must pass this check before it can select the scratch-only engine factory.
Types ¶
This section is empty.