Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gtsteffaniak/filebrowser
/ functions
Functions
1,657 in github.com/gtsteffaniak/filebrowser
⨍
Functions
1,657
◇
Types & classes
228
Method
Load
(ctx context.Context, key string)
backend/adapters/fs/diskcache/file_cache.go:109
Method
LoadFolderSizes
LoadFolderSizes loads all folder sizes for a source from the database Used on initialization to populate the in-memory map with existing sizes
backend/database/sql/index.go:1099
Function
LoadSubtitleFile
LoadSubtitleFile loads a subtitle file and returns its raw content
backend/ffmpeg/subtitles.go:180
Method
MakeAbsolutePath
MakeAbsolutePath converts a relative index path to an absolute path by combining the source path with the relative path. This ensures paths are unique
backend/indexing/indexingFiles.go:1534
Method
MakeIndexPathPlatform
input should be non-index path.
backend/indexing/windows.go:68
Function
MakeSignedTokenAPI
(user *users.User, name string, duration time.Duration, perms users.Permissions, minimal bool)
backend/auth/auth.go:38
Function
MakeUserDirs
(u *users.User, createDir bool)
backend/adapters/fs/files/user.go:22
Method
MarshalText
MarshalText implements the text marshaller method
backend/preview/image_enum.go:83
Method
MarshalText
MarshalText implements the text marshaller method
backend/preview/image_enum.go:165
Method
MarshalText
MarshalText implements the text marshaller method
backend/preview/image_enum.go:243
Function
MoveFile
MoveFile moves a file from src to dst. By default, the rename system call is used. If src and dst point to different volumes, the file copy is used as
backend/adapters/fs/fileutils/file.go:59
Function
MoveResource
(isSrcDir bool, sourceIndex, destIndex, realsrc, realdst string, s *share.Storage, a *access.Storage)
backend/adapters/fs/files/files.go:705
Function
NewMemoryTracker
NewMemoryTracker creates a memory-aware concurrency limiter
backend/preview/memory_tracker.go:16
Function
NewNoOp
()
backend/adapters/fs/diskcache/noop_cache.go:10
Function
NewStorage
NewStorage creates a users storage from a backend.
backend/database/users/storage.go:76
Function
NewStorage
NewStorage creates a storage.Storage based on Bolt DB.
backend/database/storage/bolt/bolt.go:26
Function
NewStorage
NewStorage creates a new Storage instance. Optionally pass a DB for persistence and users storage. After creating Storage with a DB, call LoadFromDB()
backend/database/access/access.go:158
Function
NewStorage
NewStorage creates an indexing storage from a backend.
backend/database/dbindex/storage.go:57
Function
NewStorage
NewStorage creates a share links storage from a backend and populates the in-memory cache from the database so all reads can be served from cache.
backend/database/share/storage.go:142
Function
NewStorage
(backend CrudBackend[T])
backend/database/crud/crud.go:16
Function
NewStorage
NewStorage creates a auth storage from a backend.
backend/auth/storage.go:27
Function
NewStorage
NewStorage creates a settings storage from a backend.
backend/common/settings/storage.go:21
Function
NonNilSlice
(in []T)
backend/common/utils/main.go:103
Method
Optimize
Optimize runs PRAGMA optimize to update query planner statistics. This helps SQLite choose more efficient query plans and should be called periodicall
backend/database/sql/index.go:577
Function
PWAIconsCacheDir
PWAIconsCacheDir is where startup icon generation writes PNGs (under the server cache dir).
backend/common/settings/config.go:1171
Function
PrintStructFields
(v interface{})
backend/common/utils/main.go:41
Function
RandomHex
RandomHex returns a hex-encoded string from byteLen bytes of crypto/rand (length 2*byteLen).
backend/common/utils/crypto.go:21
Method
ReadOnlyOperation
ReadOnlyOperation executes a function with read-only access to the index
backend/indexing/mutate.go:248
Function
Register
(username string, sources []string)
backend/events/eventRouter.go:57
Method
RemoveAllRulesForGroup
RemoveAllRulesForGroup removes a group from all allow and deny lists.
backend/database/access/access.go:823
Function
ResolveSymlinks
ResolveSymlinks resolves symlinks in the given path and returns Uses Go's filepath.EvalSymlinks which properly detects circular symlinks.
backend/indexing/iteminfo/utils.go:110
Function
RevokeApiToken
RevokeApiToken adds a token to the revoked list.
backend/auth/auth.go:31
Method
RoundTrip
RoundTrip implements the http.RoundTripper interface
backend/common/settings/auth.go:25
Function
SanitizeUserPath
SanitizeUserPath prevents path traversal attacks by cleaning and validating user input. Rule 1: Do Not Use User Input in File Paths (without validatio
backend/common/utils/file.go:70
Method
Save
(u *User, changePass bool, disableScopeChange bool)
backend/database/users/storage.go:15
Method
Save
(obj *User)
backend/database/users/storage.go:51
Method
Save
Save saves the user in a storage.
backend/database/users/storage.go:155
Method
Save
(l *share.Link)
backend/database/storage/bolt/share.go:101
Method
Save
(user *users.User, changePass, disableScopeChange bool)
backend/database/storage/bolt/users.go:174
Method
Save
(a auth.Auther)
backend/database/storage/bolt/auth.go:28
Method
Save
(info *dbindex.IndexInfo)
backend/database/storage/bolt/indexing.go:44
Method
Save
(set *settings.Settings)
backend/database/storage/bolt/config.go:17
Method
Save
(info *IndexInfo)
backend/database/dbindex/storage.go:15
Method
Save
(obj *IndexInfo)
backend/database/dbindex/storage.go:36
Method
Save
(s *Link)
backend/database/share/storage.go:24
Method
Save
(obj *Link)
backend/database/share/storage.go:45
Method
Save
Save wraps StorageBackend.Save
backend/database/share/storage.go:383
Method
Save
(obj *T)
backend/database/crud/crud.go:28
Method
Save
(Auther)
backend/auth/storage.go:17
Method
Save
(u *users.User, changePass bool, disableScopeChange bool)
backend/auth/json_timing_test.go:75
Method
Save
Save saves the settings for the current instance.
backend/common/settings/storage.go:35
Function
SaveAccessRules
(db *storm.DB, name string, from interface{})
backend/database/storage/bolt/utils.go:22
Method
SaveServer
(server *settings.Server)
backend/database/storage/bolt/config.go:29
Method
SaveServer
SaveServer wraps StorageBackend.SaveServer and adds some verification.
backend/common/settings/storage.go:62
Method
Scan
Scan implements the Scanner interface.
backend/preview/image_enum.go:181
Method
Scan
Scan implements the Scanner interface.
backend/preview/image_enum.go:259
Function
SearchMultiSources
SearchMultiSources parses query and delegates to SearchMultiSourcesParsed.
backend/indexing/search.go:199
Function
SendSourceUpdate
(source string, message string)
backend/events/eventRouter.go:111
Function
SendToUsers
(eventType, message string, users []string)
backend/events/eventRouter.go:104
Function
SetFFmpegPaths
()
backend/ffmpeg/service.go:93
Function
SetFsPermissions
SetFsPermissions sets create modes from Unix chmod(2)-style values (for example values produced by strconv.ParseUint(s, 8, 32)). setuid, setgid, and s
backend/adapters/fs/fileutils/file.go:19
Function
SetIndexDBForTesting
SetIndexDBForTesting sets the index database for testing purposes.
backend/indexing/indexingFiles.go:372
Function
SetIndexingStorage
SetIndexingStorage sets the persistent storage for index metadata.
backend/indexing/indexingFiles.go:377
Function
SetInvalidPasswordHash
()
backend/common/utils/crypto.go:43
Function
SetSourceConfig
SetSourceConfig sets the global source configuration provider This should be called once during initialization by the settings package
backend/database/users/users.go:227
Function
SetSourceNameResolver
SetSourceNameResolver sets the global source name resolver This should be called once during initialization by the settings package
backend/database/users/users.go:221
Function
SetTestIndex
SetTestIndex allows tests to register mock indices without database initialization This is useful for testing code that depends on GetIndex() without
backend/indexing/test_helpers.go:10
Function
Shutdown
()
backend/events/eventRouter.go:163
Function
SourceConfigLoaded
SourceConfigLoaded reports whether SetSourceConfig has been called (needed for ResolveSourceKey).
backend/database/users/users.go:232
Function
StartCheckForUpdates
starts a background process to check for updates periodically.
backend/common/utils/checkForUpdates.go:92
Function
StartFilebrowser
()
backend/cmd/root.go:57
Function
StartHttp
(ctx context.Context, storage *bolt.BoltStore, shutdownComplete chan struct{})
backend/http/httpRouter.go:43
Function
StartPreviewGenerator
(concurrencyLimit int, cacheDir string)
backend/preview/preview.go:165
Function
StopAllScanners
StopAllScanners stops all scanners for all indexes This should be called during graceful shutdown before closing the database
backend/indexing/indexingFiles.go:363
Method
Store
(ctx context.Context, key string, value []byte)
backend/adapters/fs/diskcache/noop_cache.go:14
Method
String
()
backend/common/settings/structs.go:170
Method
Sys
()
backend/http/webdav.go:34
Function
Ternary
(cond bool, vtrue, vfalse T)
backend/common/utils/main.go:110
Function
TestAlignCeilToFiveMinutes
(t *testing.T)
backend/indexing/indexingSchedulerLoop_test.go:8
Function
TestApplyUserDefaults_copiesUserDefaultsOntoUser
TestApplyUserDefaults_copiesUserDefaultsOntoUser guards against drift between [UserDefaults] and [ApplyUserDefaults] (regression for #2278-style bugs)
backend/common/settings/apply_user_defaults_test.go:13
Function
TestApplyUserDefaults_preservesLoginMethodWhenAlreadySet
(t *testing.T)
backend/common/settings/apply_user_defaults_test.go:199
Function
TestApplyUserDefaults_setsLoginMethodWhenEmpty
(t *testing.T)
backend/common/settings/apply_user_defaults_test.go:180
Function
TestBufferPool_ConcurrentGetPut
TestBufferPool_ConcurrentGetPut stresses the pool under concurrent use (as in Resize).
backend/preview/buffer_pool_test.go:58
Function
TestBufferPool_GetPutBalanced
TestBufferPool_GetPutBalanced verifies that getBuffer/putBuffer can be used in a loop without leaking or panicking, and that buffers are returned to t
backend/preview/buffer_pool_test.go:12
Function
TestBufferPool_LargeBufferNotReused
TestBufferPool_LargeBufferNotReused verifies that buffers that grew beyond 1MB are not put back in the pool (to avoid retaining large allocations).
backend/preview/buffer_pool_test.go:38
Function
TestBufferPool_Reuse
TestBufferPool_Reuse verifies that put buffers are reused (same capacity after get).
backend/preview/buffer_pool_test.go:23
Function
TestCacheClearingOnBulkRuleDeletion
TestCacheClearingOnBulkRuleDeletion tests cache clearing for bulk operations
backend/database/access/access_test.go:821
Function
TestCacheClearingOnRuleDeletion
TestCacheClearingOnRuleDeletion tests that the rules cache is properly cleared when rules are deleted
backend/database/access/access_test.go:704
Function
TestCacheKeyConsistency
(t *testing.T)
backend/preview/image_test.go:432
Function
TestCapitalizeFirst
(t *testing.T)
backend/common/utils/main_test.go:32
Function
TestCheckFolderModtime_unchangedPreservesHasPreviewAndHidden
TestCheckFolderModtime_unchangedPreservesHasPreviewAndHidden verifies quick-scan touch updates do not clobber has_preview/hidden when folder modtime i
backend/indexing/indexingScanner_test.go:42
Function
TestCollectCommentsAndSecrets_Basic
(t *testing.T)
backend/common/settings/generator_simple_test.go:153
Function
TestCommonPrefix
(t *testing.T)
backend/adapters/fs/fileutils/file_test.go:21
Function
TestComputeNextSlotTimeHourUsesHourGrid
(t *testing.T)
backend/indexing/indexingSchedulerLoop_test.go:56
Function
TestComputeNextSlotTimeTenMinuteGrid
(t *testing.T)
backend/indexing/indexingSchedulerLoop_test.go:22
Function
TestConfigLoadChanged
(t *testing.T)
backend/common/settings/config_test.go:45
Function
TestConfigLoadEnvVars
(t *testing.T)
backend/common/settings/config_test.go:68
Function
TestConfigLoadSpecificValues
(t *testing.T)
backend/common/settings/config_test.go:97
Function
TestCreatePreviewFromReader_UsesConcurrencyLimit
TestCreatePreviewFromReader_UsesConcurrencyLimit verifies that CreatePreviewFromReader goes through Resize and thus respects the imageSem semaphore (s
backend/preview/image_test.go:484
Function
TestDeleteFilesRootProtection
TestDeleteFilesRootProtection tests that DeleteFiles refuses to delete the source root directory itself, preventing catastrophic data loss. This is a
backend/adapters/fs/files/file_test.go:526
← previous
next →
1,101–1,200 of 1,657, ranked by callers