MCPcopy Create free account

hub / github.com/gtsteffaniak/filebrowser / functions

Functions1,657 in github.com/gtsteffaniak/filebrowser

MethodLoad
(ctx context.Context, key string)
backend/adapters/fs/diskcache/file_cache.go:109
MethodLoadFolderSizes
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
FunctionLoadSubtitleFile
LoadSubtitleFile loads a subtitle file and returns its raw content
backend/ffmpeg/subtitles.go:180
MethodMakeAbsolutePath
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
MethodMakeIndexPathPlatform
input should be non-index path.
backend/indexing/windows.go:68
FunctionMakeSignedTokenAPI
(user *users.User, name string, duration time.Duration, perms users.Permissions, minimal bool)
backend/auth/auth.go:38
FunctionMakeUserDirs
(u *users.User, createDir bool)
backend/adapters/fs/files/user.go:22
MethodMarshalText
MarshalText implements the text marshaller method
backend/preview/image_enum.go:83
MethodMarshalText
MarshalText implements the text marshaller method
backend/preview/image_enum.go:165
MethodMarshalText
MarshalText implements the text marshaller method
backend/preview/image_enum.go:243
FunctionMoveFile
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
FunctionMoveResource
(isSrcDir bool, sourceIndex, destIndex, realsrc, realdst string, s *share.Storage, a *access.Storage)
backend/adapters/fs/files/files.go:705
FunctionNewMemoryTracker
NewMemoryTracker creates a memory-aware concurrency limiter
backend/preview/memory_tracker.go:16
FunctionNewNoOp
()
backend/adapters/fs/diskcache/noop_cache.go:10
FunctionNewStorage
NewStorage creates a users storage from a backend.
backend/database/users/storage.go:76
FunctionNewStorage
NewStorage creates a storage.Storage based on Bolt DB.
backend/database/storage/bolt/bolt.go:26
FunctionNewStorage
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
FunctionNewStorage
NewStorage creates an indexing storage from a backend.
backend/database/dbindex/storage.go:57
FunctionNewStorage
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
FunctionNewStorage
(backend CrudBackend[T])
backend/database/crud/crud.go:16
FunctionNewStorage
NewStorage creates a auth storage from a backend.
backend/auth/storage.go:27
FunctionNewStorage
NewStorage creates a settings storage from a backend.
backend/common/settings/storage.go:21
FunctionNonNilSlice
(in []T)
backend/common/utils/main.go:103
MethodOptimize
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
FunctionPWAIconsCacheDir
PWAIconsCacheDir is where startup icon generation writes PNGs (under the server cache dir).
backend/common/settings/config.go:1171
FunctionPrintStructFields
(v interface{})
backend/common/utils/main.go:41
FunctionRandomHex
RandomHex returns a hex-encoded string from byteLen bytes of crypto/rand (length 2*byteLen).
backend/common/utils/crypto.go:21
MethodReadOnlyOperation
ReadOnlyOperation executes a function with read-only access to the index
backend/indexing/mutate.go:248
FunctionRegister
(username string, sources []string)
backend/events/eventRouter.go:57
MethodRemoveAllRulesForGroup
RemoveAllRulesForGroup removes a group from all allow and deny lists.
backend/database/access/access.go:823
FunctionResolveSymlinks
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
FunctionRevokeApiToken
RevokeApiToken adds a token to the revoked list.
backend/auth/auth.go:31
MethodRoundTrip
RoundTrip implements the http.RoundTripper interface
backend/common/settings/auth.go:25
FunctionSanitizeUserPath
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
MethodSave
(u *User, changePass bool, disableScopeChange bool)
backend/database/users/storage.go:15
MethodSave
(obj *User)
backend/database/users/storage.go:51
MethodSave
Save saves the user in a storage.
backend/database/users/storage.go:155
MethodSave
(l *share.Link)
backend/database/storage/bolt/share.go:101
MethodSave
(user *users.User, changePass, disableScopeChange bool)
backend/database/storage/bolt/users.go:174
MethodSave
(a auth.Auther)
backend/database/storage/bolt/auth.go:28
MethodSave
(info *dbindex.IndexInfo)
backend/database/storage/bolt/indexing.go:44
MethodSave
(set *settings.Settings)
backend/database/storage/bolt/config.go:17
MethodSave
(info *IndexInfo)
backend/database/dbindex/storage.go:15
MethodSave
(obj *IndexInfo)
backend/database/dbindex/storage.go:36
MethodSave
(s *Link)
backend/database/share/storage.go:24
MethodSave
(obj *Link)
backend/database/share/storage.go:45
MethodSave
Save wraps StorageBackend.Save
backend/database/share/storage.go:383
MethodSave
(obj *T)
backend/database/crud/crud.go:28
MethodSave
(Auther)
backend/auth/storage.go:17
MethodSave
(u *users.User, changePass bool, disableScopeChange bool)
backend/auth/json_timing_test.go:75
MethodSave
Save saves the settings for the current instance.
backend/common/settings/storage.go:35
FunctionSaveAccessRules
(db *storm.DB, name string, from interface{})
backend/database/storage/bolt/utils.go:22
MethodSaveServer
(server *settings.Server)
backend/database/storage/bolt/config.go:29
MethodSaveServer
SaveServer wraps StorageBackend.SaveServer and adds some verification.
backend/common/settings/storage.go:62
MethodScan
Scan implements the Scanner interface.
backend/preview/image_enum.go:181
MethodScan
Scan implements the Scanner interface.
backend/preview/image_enum.go:259
FunctionSearchMultiSources
SearchMultiSources parses query and delegates to SearchMultiSourcesParsed.
backend/indexing/search.go:199
FunctionSendSourceUpdate
(source string, message string)
backend/events/eventRouter.go:111
FunctionSendToUsers
(eventType, message string, users []string)
backend/events/eventRouter.go:104
FunctionSetFFmpegPaths
()
backend/ffmpeg/service.go:93
FunctionSetFsPermissions
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
FunctionSetIndexDBForTesting
SetIndexDBForTesting sets the index database for testing purposes.
backend/indexing/indexingFiles.go:372
FunctionSetIndexingStorage
SetIndexingStorage sets the persistent storage for index metadata.
backend/indexing/indexingFiles.go:377
FunctionSetInvalidPasswordHash
()
backend/common/utils/crypto.go:43
FunctionSetSourceConfig
SetSourceConfig sets the global source configuration provider This should be called once during initialization by the settings package
backend/database/users/users.go:227
FunctionSetSourceNameResolver
SetSourceNameResolver sets the global source name resolver This should be called once during initialization by the settings package
backend/database/users/users.go:221
FunctionSetTestIndex
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
FunctionShutdown
()
backend/events/eventRouter.go:163
FunctionSourceConfigLoaded
SourceConfigLoaded reports whether SetSourceConfig has been called (needed for ResolveSourceKey).
backend/database/users/users.go:232
FunctionStartCheckForUpdates
starts a background process to check for updates periodically.
backend/common/utils/checkForUpdates.go:92
FunctionStartFilebrowser
()
backend/cmd/root.go:57
FunctionStartHttp
(ctx context.Context, storage *bolt.BoltStore, shutdownComplete chan struct{})
backend/http/httpRouter.go:43
FunctionStartPreviewGenerator
(concurrencyLimit int, cacheDir string)
backend/preview/preview.go:165
FunctionStopAllScanners
StopAllScanners stops all scanners for all indexes This should be called during graceful shutdown before closing the database
backend/indexing/indexingFiles.go:363
MethodStore
(ctx context.Context, key string, value []byte)
backend/adapters/fs/diskcache/noop_cache.go:14
MethodString
()
backend/common/settings/structs.go:170
MethodSys
()
backend/http/webdav.go:34
FunctionTernary
(cond bool, vtrue, vfalse T)
backend/common/utils/main.go:110
FunctionTestAlignCeilToFiveMinutes
(t *testing.T)
backend/indexing/indexingSchedulerLoop_test.go:8
FunctionTestApplyUserDefaults_copiesUserDefaultsOntoUser
TestApplyUserDefaults_copiesUserDefaultsOntoUser guards against drift between [UserDefaults] and [ApplyUserDefaults] (regression for #2278-style bugs)
backend/common/settings/apply_user_defaults_test.go:13
FunctionTestApplyUserDefaults_preservesLoginMethodWhenAlreadySet
(t *testing.T)
backend/common/settings/apply_user_defaults_test.go:199
FunctionTestApplyUserDefaults_setsLoginMethodWhenEmpty
(t *testing.T)
backend/common/settings/apply_user_defaults_test.go:180
FunctionTestBufferPool_ConcurrentGetPut
TestBufferPool_ConcurrentGetPut stresses the pool under concurrent use (as in Resize).
backend/preview/buffer_pool_test.go:58
FunctionTestBufferPool_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
FunctionTestBufferPool_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
FunctionTestBufferPool_Reuse
TestBufferPool_Reuse verifies that put buffers are reused (same capacity after get).
backend/preview/buffer_pool_test.go:23
FunctionTestCacheClearingOnBulkRuleDeletion
TestCacheClearingOnBulkRuleDeletion tests cache clearing for bulk operations
backend/database/access/access_test.go:821
FunctionTestCacheClearingOnRuleDeletion
TestCacheClearingOnRuleDeletion tests that the rules cache is properly cleared when rules are deleted
backend/database/access/access_test.go:704
FunctionTestCacheKeyConsistency
(t *testing.T)
backend/preview/image_test.go:432
FunctionTestCapitalizeFirst
(t *testing.T)
backend/common/utils/main_test.go:32
FunctionTestCheckFolderModtime_unchangedPreservesHasPreviewAndHidden
TestCheckFolderModtime_unchangedPreservesHasPreviewAndHidden verifies quick-scan touch updates do not clobber has_preview/hidden when folder modtime i
backend/indexing/indexingScanner_test.go:42
FunctionTestCollectCommentsAndSecrets_Basic
(t *testing.T)
backend/common/settings/generator_simple_test.go:153
FunctionTestCommonPrefix
(t *testing.T)
backend/adapters/fs/fileutils/file_test.go:21
FunctionTestComputeNextSlotTimeHourUsesHourGrid
(t *testing.T)
backend/indexing/indexingSchedulerLoop_test.go:56
FunctionTestComputeNextSlotTimeTenMinuteGrid
(t *testing.T)
backend/indexing/indexingSchedulerLoop_test.go:22
FunctionTestConfigLoadChanged
(t *testing.T)
backend/common/settings/config_test.go:45
FunctionTestConfigLoadEnvVars
(t *testing.T)
backend/common/settings/config_test.go:68
FunctionTestConfigLoadSpecificValues
(t *testing.T)
backend/common/settings/config_test.go:97
FunctionTestCreatePreviewFromReader_UsesConcurrencyLimit
TestCreatePreviewFromReader_UsesConcurrencyLimit verifies that CreatePreviewFromReader goes through Resize and thus respects the imageSem semaphore (s
backend/preview/image_test.go:484
FunctionTestDeleteFilesRootProtection
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
← previousnext →1,101–1,200 of 1,657, ranked by callers