INNER CODE UNIT · Go
NewFileSystem
cryptag/cryptag · servers/cryptag-webserver/main.go:444
func NewFileSystem(cryptagPath string) (*FileSystem, error) {
cryptagPath = strings.TrimRight(cryptagPath, "/\\")
fs := &FileSystem{
cryptagPath: cryptagPath,
tagsPath: path.Join(cryptagPath, "tags"),
rowsPath: path.Join(cryptagPath, "rows"),
rowsDeletedPath: path.Join(cryptagPath, "rows_deleted"),
}
if err := fs.Init(); err != nil {
return nil, err
}
return fs, nil
}
// Init creates the base CrypTag directories
func (fs *FileSystem) Init() error {