Documentation ¶
Index ¶
- Constants
- func CleanTmpFolder(tmpFolder string) bool
- func CollectFileListForRegularExpression(pref string, suffix string, reg string, pool []string) []string
- func CollectFileListForSingleName(s string, pool []string) []string
- func CollectFileListForWildCard(path string, name string, pool []string) []string
- func CollectRegularFileList(path string) []string
- func ConvertInterfaceToByteArrayValue(key string, v interface{}) ([]byte, error)
- func CopySingleFile(srcFile, dstFile string) error
- func CopySymLink(source, dest string) error
- func CopyWholeFolder(src string, dest string) error
- func CreateIfNotExists(dir string, perm os.FileMode) error
- func CreateOrCleanDir(dir string, perm os.FileMode) error
- func DeleteAllSavedFiles(dirName string, fileName string) bool
- func DeleteAllSavedFilesExceptZero(dirName string, fileName string) bool
- func DeleteFileIfExists(fileName string) bool
- func DeleteFilesIfExist(fileNames []string) int
- func DeleteLastSavedFile(dirName string, fileName string, count int) bool
- func EnsureFolderForUsualFileToBeSaved(fileName string)
- func Exists(filePath string) bool
- func GetCacheByteArrayValue(key string) ([]byte, error)
- func GetCacheFloat64Value(key string) (float64, error)
- func GetCacheInt64Value(key string) (int64, error)
- func GetCacheLocalFileInfo(folder string, item string) (folderFile string)
- func GetCacheStringValue(key string) (string, error)
- func GetCacheValue(key string) (interface{}, error)
- func GetFirstExistingPath(paths ...string) string
- func GetFolderLastPartName(name string) string
- func GetFolderNameWithoutLastPart(name string) string
- func GetFolderNameWithoutLastSlash(name string) string
- func GetGroupByKey(key string) (grp string, item string)
- func GetLastSavedFileName(dirName string, fileName string) string
- func GetNextSaveFileName(dirName string, fileName string) string
- func GetSafeFileName(src string) string
- func GetTempPath() string
- func GetTempPathSlashed() string
- func GetTemporaryFileName() string
- func GetUniqueFileName(dir string, prefix string, suffix string) string
- func GetUniqueTmpFolder() string
- func MakeALlDirs(fileNames []string) int
- func MakeLastPathIfNotAbsolute(fileName string) string
- func MoveFile(sourcePath, destPath string, strictRemove bool) error
- func ParsePathName(s string) (string, string)
- func ReadConfigByDescription(config string) (duration1 int, duration2 int, name string, ok bool)
- func ReadFileList(s string) []string
- func RenameOrMoveFile(sourcePath, destPath string, strictRemove bool) error
- func ResetAllLocalFileCache()
- func ResetCacheGroups(groups ...string)
- func ResetCacheItems(items ...string)
- func ResetTotalCache()
- func SaveToUniqueFile(data string) string
- func SetCacheConfigByDescription(groupName string, config string, valueGetter CacheValueGetter) bool
- func SetCacheConfigWhole(groupName string, memoryDuration int, fileDuration int, folderName string, ...) bool
- func SetCacheValue(key string, value interface{})
- func SetCacheValueAndSave(key string, value interface{}, tosave bool)
- func SetTempPath(path string, prefix string)
- func WildMaskFullPathScan(lst []string, mask string) []string
- func WildMaskInString(pattern []string, beginAny bool, endAny bool, s string) bool
- func WildMaskStringScan(lst []string, mask string) []string
- type CacheValueGetter
- type DirScanList
- type DirScanListGetter
Constants ¶
View Source
const CommonGroup = "dv_common"
Variables ¶
This section is empty.
Functions ¶
func CleanTmpFolder ¶
func CollectRegularFileList ¶
func CopySingleFile ¶
func CopySymLink ¶
func CopyWholeFolder ¶
func DeleteAllSavedFiles ¶
func DeleteFileIfExists ¶
func DeleteFilesIfExist ¶
func DeleteLastSavedFile ¶
func EnsureFolderForUsualFileToBeSaved ¶
func EnsureFolderForUsualFileToBeSaved(fileName string)
func GetCacheByteArrayValue ¶
func GetCacheFloat64Value ¶
func GetCacheInt64Value ¶
func GetCacheLocalFileInfo ¶
func GetCacheStringValue ¶
func GetCacheValue ¶
func GetFirstExistingPath ¶
func GetFolderLastPartName ¶
func GetGroupByKey ¶
func GetLastSavedFileName ¶
func GetNextSaveFileName ¶
func GetSafeFileName ¶
func GetTempPath ¶
func GetTempPath() string
func GetTempPathSlashed ¶
func GetTempPathSlashed() string
func GetTemporaryFileName ¶
func GetTemporaryFileName() string
func GetUniqueTmpFolder ¶
func GetUniqueTmpFolder() string
func MakeALlDirs ¶
func ParsePathName ¶
func ReadConfigByDescription ¶
func ReadFileList ¶
func RenameOrMoveFile ¶
func ResetAllLocalFileCache ¶
func ResetAllLocalFileCache()
func ResetCacheGroups ¶
func ResetCacheGroups(groups ...string)
func ResetCacheItems ¶
func ResetCacheItems(items ...string)
func ResetTotalCache ¶
func ResetTotalCache()
func SaveToUniqueFile ¶
func SetCacheConfigByDescription ¶
func SetCacheConfigByDescription(groupName string, config string, valueGetter CacheValueGetter) bool
func SetCacheConfigWhole ¶
func SetCacheValue ¶
func SetCacheValue(key string, value interface{})
func SetCacheValueAndSave ¶
func SetTempPath ¶
func WildMaskFullPathScan ¶
func WildMaskInString ¶
func WildMaskStringScan ¶
Types ¶
type CacheValueGetter ¶
type DirScanList ¶
type DirScanList struct {
// contains filtered or unexported fields
}
func DirScanProvider ¶
func DirScanProvider(data map[string][]string, currentDir string, dirListProc DirScanListGetter) ([]*DirScanList, error)
func DirScanProviderByString ¶
func DirScanProviderByString(data string, currentDir string, dirListProc DirScanListGetter) ([]*DirScanList, error)
type DirScanListGetter ¶
Click to show internal directories.
Click to hide internal directories.