Documentation
¶
Index ¶
- Variables
- func AlreadyInCategorizedFolder(to, parentFilePath string) bool
- func CategorizeFiles(filePaths *[]string) error
- func CheckDuplicate(dirPath string, files *[]string) ([]string, error)
- func CheckFileOrFolderNotExist(path string) bool
- func Compress(deepSearchFlag, removeEmptyDirsFlag bool) error
- func CompressToZip(filesPath *[]string, dirPath string) error
- func CreateCommonFileMap(folderToLookFor string, deepSearch, removeEmptyDirs bool) (map[string]*CommonFileInfo, error)
- func CreateDirectories(dirs map[string][]string) error
- func GetFileChoosen(filesPath *[]string, dirPath string) ([]string, error)
- func GetFileContent(filePath string) (*os.File, string, string, error)
- func GreenLog(text string)
- func HashFile(filePath string) (string, error)
- func MoveFile(from, to string) error
- func MoveToCommonFolder(folderToLookFor string, deepSearch, removeEmptyDirs bool) error
- func ReadFiles(dirPath string, deepSearchFlag, removeEmptyDirsFlag bool) (*[]string, error)
- func RedLog(text string)
- func RemoveDuplicates(dirPath string, filePaths *[]string) error
- func RenameFile(filePath, filename string) string
- func SortByDateModified(files *[]string, descending bool)
- func SortBySize(files *[]string, descending bool)
- func SortFiles(files *[]string) error
- func YellowLog(text string)
- type CommonFileInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var MadeChanges bool
a variable that store if we made any changes to files
View Source
var ORGANIZED bool
a variable that turns to true if we made changes to user files
Functions ¶
func AlreadyInCategorizedFolder ¶
checks if the file we want to create folder for it is not in a folder that has
been created before for categorization
func CategorizeFiles ¶
func CompressToZip ¶
compresses file to zip
func CreateCommonFileMap ¶
func CreateCommonFileMap(folderToLookFor string, deepSearch, removeEmptyDirs bool) (map[string]*CommonFileInfo, error)
func CreateDirectories ¶
func GetFileContent ¶
gets information we need for comperssing a file like it content in bytes and it name and extension
func MoveToCommonFolder ¶
func RemoveDuplicates ¶
func RenameFile ¶
func SortByDateModified ¶
func SortBySize ¶
Types ¶
type CommonFileInfo ¶
Click to show internal directories.
Click to hide internal directories.