Documentation ¶
Index ¶
- Variables
- func ArcpicsAllKeys(db *bolt.DB) []string
- func ArcpicsDatabaseUpdate(db *bolt.DB, arcFS ArcpicsFS) error
- func ArcpicsFiles2DB(db *bolt.DB, arcFS ArcpicsFS) error
- func ArcpicsFilesUpdate(arcFS ArcpicsFS) error
- func ArcpicsQuery(db *bolt.DB, query string)
- func ArcpicsWordFrequency(db *bolt.DB)
- func CmdHelp(msg string) string
- func CopyDirFromTo(fromSrc, toDst string) error
- func CreateDirJson(jfname string, jDir JdirType) error
- func CreateLabelFile(dirName, newLabel string) error
- func DbLabel(archiveDir string) (string, error)
- func DirCount(fsys fs.FS) (countDir int, totalPathLength int)
- func DirExists(filename string) bool
- func DirFilesCount(fsys fs.FS) (int, int)
- func FileExists(filename string) bool
- func FilesCount(fsys fs.FS) (count int)
- func GetDatabaseDirName() string
- func GetDbValue(db *bolt.DB, bucket []byte, key string) string
- func GetLabelsInDbDir(d string) ([]string, error)
- func LabeledDatabase(label string, varArgs ...string) (*bolt.DB, error)
- func PurgeJson__(dir string) error
- func PutDbValue(db *bolt.DB, bucket []byte, key, value string) error
- func UpdateDirJson(fjson string, jDir JdirType) error
- func Web(port int)
- type ArcpicsFS
- type JdirType
- type JfileType
- type LabelMountsType
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSkippedByUser = "error - skipped by user"
View Source
var FILES_BUCKET = []byte("FILES")
View Source
var HelpTextFmt = `` /* 1046-byte string literal not displayed */
View Source
var INIT_LABEL_KEY = "ARC-PICS-LABEL-KEY"
View Source
var LABEL_SUMMARY_fmt = "LABEL-%s-SUMMARY"
View Source
var SYSTEM_BUCKET = []byte("SYSTEM")
View Source
var Verbose bool = false
View Source
var Version string = "0.0.3"
line:
duplicate Windows — Shift + Alt + Up/Down select Windows/Ubuntu — Ctrl + L delete Windows/Ubuntu — Ctrl + Shift + K move Windows/Ubuntu — Alt + Up/Down arrow
Functions ¶
func ArcpicsAllKeys ¶
func ArcpicsDatabaseUpdate ¶
Updating database according to the directory tree json files
func ArcpicsFiles2DB ¶ added in v0.0.3
Writting the directory tree json files to database
func ArcpicsFilesUpdate ¶
Updating directory tree json files according to dir content
func ArcpicsQuery ¶ added in v0.0.3
func ArcpicsWordFrequency ¶ added in v0.0.3
func CopyDirFromTo ¶
CopyDirFromTo copies the content of Src to Dst.
func CreateDirJson ¶
func CreateLabelFile ¶ added in v0.0.3
func FilesCount ¶
func GetDatabaseDirName ¶
func GetDatabaseDirName() string
func GetLabelsInDbDir ¶
func PurgeJson__ ¶
func UpdateDirJson ¶
Types ¶
type ArcpicsFS ¶
File system ArcpicsFS has to have at root special label file with name "arcpics-db-label" and at least one character long arbitrary extension. For example file "arcpics-db-label.a" has label value "a" or "arcpics-db-label.my1TB_hard_drive" has label value "my1TB_hard_drive"
ATTENTION!! ArcpicsFS work fine with fs.WalkDir unless there are any file operations Then use filepath.WalkDir(ArcpicsFS.Dir,...
func OpenArcpicsFS ¶
func (ArcpicsFS) DirPathsUpdate ¶
type LabelMountsType ¶ added in v0.0.3
var LabelMounts LabelMountsType = make(map[string]string)
func (*LabelMountsType) Get ¶ added in v0.0.3
func (lm *LabelMountsType) Get(label string) string
func (*LabelMountsType) Html ¶ added in v0.0.3
func (lm *LabelMountsType) Html(label string) string
func (*LabelMountsType) Set ¶ added in v0.0.3
func (lm *LabelMountsType) Set(label string, value string)
Click to show internal directories.
Click to hide internal directories.