Documentation ¶
Index ¶
- func CopyHandler(c *fiber.Ctx) error
- func CreateHandler(c *fiber.Ctx) error
- func DeleteHandler(c *fiber.Ctx) error
- func DownloadHandler(c *fiber.Ctx) error
- func InfoHandler(c *fiber.Ctx) error
- func InitService()
- func ListHandler(c *fiber.Ctx) error
- func MoveHandler(c *fiber.Ctx) error
- func RenameHandler(c *fiber.Ctx) error
- func UploadHandler(c *fiber.Ctx) error
- type FileInfo
- type FilemanagerService
- func (s *FilemanagerService) Copy(sourcePath, destPath string) error
- func (s *FilemanagerService) Create(path string, isDir bool) error
- func (s *FilemanagerService) Delete(path string) error
- func (s *FilemanagerService) GetInfo(path string) (*FileInfo, error)
- func (s *FilemanagerService) List(path string) ([]FileInfo, error)
- func (s *FilemanagerService) Move(sourcePath, destPath string) error
- func (s *FilemanagerService) Rename(oldPath, newPath string) error
- func (s *FilemanagerService) Upload(path string, file io.Reader, filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyHandler ¶
func CopyHandler(c *fiber.Ctx) error
CopyHandler handles copying files and directories
func CreateHandler ¶
func CreateHandler(c *fiber.Ctx) error
CreateHandler handles the creation of new files and directories
func DeleteHandler ¶
func DeleteHandler(c *fiber.Ctx) error
DeleteHandler handles file and directory deletion
func DownloadHandler ¶
func DownloadHandler(c *fiber.Ctx) error
DownloadHandler handles file downloads
func InfoHandler ¶
func InfoHandler(c *fiber.Ctx) error
InfoHandler returns detailed information about a file or directory
func InitService ¶
func InitService()
func ListHandler ¶
func ListHandler(c *fiber.Ctx) error
ListHandler handles the request to list files and directories
func MoveHandler ¶
func MoveHandler(c *fiber.Ctx) error
MoveHandler handles moving files and directories
func RenameHandler ¶
func RenameHandler(c *fiber.Ctx) error
RenameHandler handles file and directory renaming
func UploadHandler ¶
func UploadHandler(c *fiber.Ctx) error
UploadHandler handles file upload requests
Types ¶
type FilemanagerService ¶
type FilemanagerService struct {
// contains filtered or unexported fields
}
func GetService ¶
func GetService() *FilemanagerService
func (*FilemanagerService) Copy ¶
func (s *FilemanagerService) Copy(sourcePath, destPath string) error
Copy copies a file or directory to a new location
func (*FilemanagerService) Create ¶
func (s *FilemanagerService) Create(path string, isDir bool) error
Create creates a new directory or file
func (*FilemanagerService) Delete ¶
func (s *FilemanagerService) Delete(path string) error
Delete removes a file or directory
func (*FilemanagerService) GetInfo ¶
func (s *FilemanagerService) GetInfo(path string) (*FileInfo, error)
GetInfo returns detailed information about a file or directory
func (*FilemanagerService) List ¶
func (s *FilemanagerService) List(path string) ([]FileInfo, error)
List returns a list of files and directories in the specified path
func (*FilemanagerService) Move ¶
func (s *FilemanagerService) Move(sourcePath, destPath string) error
Move moves a file or directory to a new location
func (*FilemanagerService) Rename ¶
func (s *FilemanagerService) Rename(oldPath, newPath string) error
Rename renames a file or directory