Documentation
¶
Index ¶
- func CreateDirectory(path string) error
- func DeleteFile(path string) error
- func FormatSize(bytes int64) string
- func GetFiles(path string) (models.DirectoryEntries, error)
- func RenameFile(oldPath, newName string) error
- func SearchFiles(basePath, query string) ([]models.FileEntry, error)
- func SortEntries(entries []models.FileEntry, sortBy, order string) []models.FileEntry
- func UrlToFilePath(basePath string, url string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirectory ¶
CreateDirectory creates a new directory
func FormatSize ¶
FormatSize formats bytes into human-readable size
func RenameFile ¶
RenameFile renames a file or directory
func SearchFiles ¶
SearchFiles searches for files/folders matching the query
func SortEntries ¶
SortEntries sorts file entries by field and direction
func UrlToFilePath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.