Page MenuHomeMusing Studio

directories.go
No OneTemporary

directories.go

package config
import (
"os"
"path/filepath"
"github.com/writeas/writeas-cli/fileutils"
)
func UserDataDir(dataDirName string) string {
return filepath.Join(parentDataDir(), dataDirName)
}
func DataDirExists(dataDirName string) bool {
return fileutils.Exists(UserDataDir(dataDirName))
}
func CreateDataDir(dataDirName string) error {
return os.Mkdir(UserDataDir(dataDirName), 0700)
}

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 20, 4:57 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3137351

Event Timeline