file_manager

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSON_ACTION_FILE_CLONE            = "file_clone"
	JSON_ACTION_FILE_RENAME           = "file_rename"
	JSON_ACTION_FILE_DELETE           = "file_delete"
	JSON_ACTION_FILE_UPLOAD           = "file_upload"
	JSON_ACTION_DIRECTORY_CREATE      = "directory_create"
	JSON_ACTION_DIRECTORY_DELETE      = "directory_delete"
	JSON_ACTION_BULK_MOVE             = "bulk_move"
	JSON_ACTION_BULK_DELETE           = "bulk_delete"
	JSON_ACTION_GET_MOVE_DESTINATIONS = "get_move_destinations"
	MAX_UPLOAD_SIZE                   = 50 * 1024 * 1024 // 50MB
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileEntry

type FileEntry struct {
	IsDir             bool
	Path              string
	URL               string
	Name              string
	Size              int64
	SizeHuman         string
	LastModified      time.Time
	LastModifiedHuman string
	Depth             int
}

FileEntry represents a file or directory entry

type UiInterface

type UiInterface interface {
	shared.UiInterface
	FileManager(w http.ResponseWriter, r *http.Request)
}

UiInterface defines the file manager controller's UI interface

func UI

func UI(config shared.UiConfig) UiInterface

UI creates a new file manager controller UI from the given config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL