 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var ( ErrDirectoryTraversal = errors.New("apps directory path contains directory traversal sequences") ErrOutsideHomeDirectory = errors.New("apps directory path is outside the user's home directory") ErrAbsolutePathNotInHome = errors.New("absolute apps directory path must be within the user's home directory") ErrNotADirectory = errors.New("path is not a directory") ErrNotWritable = errors.New("directory is not writable: missing write permission") ErrSymlinkResolution = errors.New("failed to resolve symlinks in path") )
Functions ¶
func EnsureAppsDirectory ¶
EnsureAppsDirectory creates the apps directory if it doesn't exist and verifies it's writable Returns the apps directory path
func GetAppsDirectory ¶
GetAppsDirectory returns the apps directory path. It first checks the LAYERED_APPS_DIRECTORY environment variable, and if not set, defaults to ~/LayeredApps
func IsWithinDirectory ¶ added in v0.0.2
IsWithinDirectory checks if the target path is within the base directory
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.