Documentation
¶
Overview ¶
Utilities for managing directories/files
Index ¶
- Constants
- func DeleteIfEmpty(dir string) error
- func GetCurrentDirectory() (string, *os.File, error)
- func GetDirectoryContents(dir *os.File) ([]os.FileInfo, error)
- func InitializeRepo()
- func OpenRepo() (*os.File, error)
- func RecursivelyCheckForRepo(file *os.File) (found bool, dir string)
- func RemoveRepo() error
Constants ¶
View Source
const ( ObjectDir = ".svc" Permissions = 0777 )
Variables ¶
This section is empty.
Functions ¶
func DeleteIfEmpty ¶
DeleteIfEmpty deletes a directory if the contents are empty
func GetCurrentDirectory ¶
GetCurrentDirectory returns a *File to the current directory
func GetDirectoryContents ¶
GetDirectoryContents returns a slice of files/folders in dir
func RecursivelyCheckForRepo ¶
Check parent directories until root for existing repo. Probably a more elegant way to do this.
func RemoveRepo ¶
func RemoveRepo() error
RemoveRepo deletes the current repo's metadata, leaving working files.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.