MCPcopy Create free account

hub / github.com/gtsteffaniak/filebrowser / functions

Functions1,657 in github.com/gtsteffaniak/filebrowser

↓ 8 callersMethodStore
(ctx context.Context, key string, value []byte)
backend/http/preview.go:24
↓ 8 callersFunctionarrayBufferToBase64
(buffer)
frontend/src/api/auth.js:190
↓ 8 callersFunctioncreateTestUsersBackend
(t *testing.T)
backend/database/storage/bolt/users_test.go:38
↓ 8 callersFunctionerrorMsg
Helper function to create error messages dynamically
backend/indexing/iteminfo/conditions_test.go:11
↓ 8 callersFunctionsafeExtractPath
safeExtractPath ensures name does not escape destDir (no ".." or drive-root / UNC tricks).
backend/http/archive.go:946
↓ 8 callersMethodsendEvent
expects message with double quotes around string
backend/http/httpEvents.go:21
↓ 8 callersFunctionsetupTestIndex
setupTestIndex creates a test index with mock data (no filesystem dependencies)
backend/indexing/indexingFiles_test.go:13
↓ 8 callersFunctionwithUserHelper
Middleware to retrieve and authenticate user
backend/http/middleware.go:341
↓ 7 callersMethodSearch
Search parses query and delegates to SearchParsed (legacy / tests).
backend/indexing/search.go:32
↓ 7 callersFunctionbuildNodeWithDefaults
buildNodeWithDefaults constructs a yaml.Node for any Go value, skipping fields that match defaults, redacting secrets, and filtering deprecated fields
backend/common/settings/generator.go:517
↓ 7 callersFunctioneditUserTrigger
Edit opener: `role="button"` div with `$t('general.edit')` (typically "Edit").
frontend/tests/playwright/settings/user-actions.spec.ts:11
↓ 7 callersFunctionformatMatcher
(format Format)
backend/preview/image_test.go:273
↓ 7 callersFunctiongetBuffer
getBuffer gets a buffer from the pool
backend/preview/buffer_pool.go:18
↓ 7 callersFunctiongetRemoteIP
(r *http.Request)
backend/http/middleware.go:723
↓ 7 callersFunctiongetShareURL
(r *http.Request, hash string, isDirectDownload bool, token string)
backend/http/share.go:579
↓ 7 callersFunctionnotifyUpdate
* Notify listeners that notifications have changed
frontend/src/notify/message.js:77
↓ 7 callersFunctionputBuffer
putBuffer returns a buffer to the pool
backend/preview/buffer_pool.go:29
↓ 7 callersMethodsetStatus
(id, status)
frontend/src/utils/downloadManager.js:42
↓ 7 callersMethoduseAdaptiveScheduling
useAdaptiveScheduling is true when the index uses tiered/aligned scheduling (IndexingInterval == 0).
backend/indexing/indexingFiles.go:1555
↓ 7 callersFunctionuserRowInSettingsUsersTable
Users tab uses SettingsTable (no `tr.item`); scoped to `.settings-table` body rows only.
frontend/tests/playwright/settings/user-actions.spec.ts:6
↓ 7 callersFunctionwithOrWithoutUser
(fn handleFunc)
backend/http/middleware.go:622
↓ 6 callersFunctionCollectCommentsAndSecrets
CollectCommentsAndSecrets parses all Go source and returns comments, secrets, and deprecated field mappings
backend/common/settings/generator.go:43
↓ 6 callersFunctionGenerateConfigYamlWithSource
GenerateConfigYamlWithSource generates YAML from a given config with options for comments and filtering, using a custom source path
backend/common/settings/generator.go:1138
↓ 6 callersMethodGetFolderSize
GetFolderSize retrieves the size for a directory from the in-memory map
backend/indexing/mutate.go:379
↓ 6 callersMethodGetScannerStatus
GetScannerStatus returns detailed information about all active scanners
backend/indexing/indexingSchedule.go:345
↓ 6 callersMethodGets
()
backend/database/users/storage.go:24
↓ 6 callersMethodModTime
()
backend/http/webdav.go:32
↓ 6 callersMethodMode
()
backend/indexing/getDirInfoCore_test.go:322
↓ 6 callersFunctionNewPreviewGenerator
Calculate split between small and large imaging library processors Distribution formula: 1 processor: single image processor for all sizes 2 proce
backend/preview/preview.go:52
↓ 6 callersMethodString
()
backend/common/settings/structs.go:136
↓ 6 callersMethodcheckAccess
checkAccess validates if the user can access a given path This is used by all write operations (mkdir, delete, rename, etc.) Returns nil if access is
backend/http/webdav.go:131
↓ 6 callersFunctioncheckTogglePersistence
(page: Page, settingName: string)
frontend/tests/playwright/settings/user-actions.spec.ts:156
↓ 6 callersMethodcreateScanner
createChildScanner creates a scanner for a specific child directory (recursive)
backend/indexing/indexingSchedule.go:334
↓ 6 callersMethodgetActiveScannerPathUnlocked
getActiveScannerPathUnlocked returns the path of the currently active scanner, or empty string if none
backend/indexing/indexingFiles.go:1513
↓ 6 callersMethodprocessQueue
()
frontend/src/utils/upload.js:245
↓ 6 callersFunctionsetLanguage
(locale: string)
frontend/src/i18n/index.ts:82
↓ 6 callersFunctionstartDownload
(config, files, hash = "", options = {})
frontend/src/utils/download.js:82
↓ 6 callersFunctiontestVideoPreviewConfig
Helper function to test video preview configuration
backend/common/settings/video_preview_test.go:298
↓ 6 callersMethodupdateProgress
(upload, progress)
frontend/src/utils/upload.js:532
↓ 5 callersMethodDenyAll
DenyAll sets a rule to deny all access for a given source and index path.
backend/database/access/access.go:304
↓ 5 callersFunctionGenerateConfigYaml
GenerateConfigYaml generates YAML from a given config with options for comments and filtering
backend/common/settings/generator.go:903
↓ 5 callersMethodGetOrientationFilter
GetOrientationFilter converts EXIF orientation to FFmpeg filter
backend/ffmpeg/image.go:41
↓ 5 callersMethodGetSourceName
()
backend/database/share/extended.go:150
↓ 5 callersMethodIsViewable
IsViewable checks if a path is viewable (allows FS access) Only checks the item itself, not parent paths
backend/indexing/indexingFiles.go:1296
↓ 5 callersFunctionNewIndexDB
NewIndexDB creates a new index database in the cache directory. Uses a fixed filename for persistence (index_{name}.db) unless disableReuse is true. j
backend/database/sql/index.go:68
↓ 5 callersMethodOpenFile
(ctx context.Context, requestPath string, flag int, perm os.FileMode)
backend/http/webdav.go:265
↓ 5 callersMethodSave
Save wraps a StorageBackend.Save.
backend/auth/storage.go:64
↓ 5 callersMethodSize
()
backend/indexing/getDirInfoCore_test.go:321
↓ 5 callersFunctionValidateLdapAuth
ValidateLdapAuth checks LDAP config and sets defaults. Call when LDAP is enabled.
backend/common/settings/auth.go:129
↓ 5 callersMethodadd
(basePath, items, overwrite = false)
frontend/src/utils/upload.js:68
↓ 5 callersFunctionconfirmActorPasswordPrompt
* User POST/PUT/DELETE for sensitive actions return 401 until X-Password is supplied; the UI opens password-prompt on top. * Password must match test
frontend/tests/playwright/settings/user-actions.spec.ts:19
↓ 5 callersMethoddeleteFromCacheLocked
deleteFromCacheLocked removes the link (by hash) from both caches. Caller must hold s.mu.
backend/database/share/storage.go:97
↓ 5 callersFunctiongetContent
getContent reads and returns the file content if it's considered an editable text file. This is a wrapper around utils.IsTextFile that also returns th
backend/adapters/fs/files/files.go:962
↓ 5 callersFunctiongetObjectProperty
(obj, key)
frontend/src/utils/object.js:13
↓ 5 callersMethodgetOrCreateRuleNL
getOrCreateRuleNL ensures a rule exists for the given source and index path. The caller must hold the lock.
backend/database/access/access.go:214
↓ 5 callersFunctiongetScheme
(r *http.Request)
backend/http/middleware.go:861
↓ 5 callersFunctioninitTestIndex
Helper function to initialize a test index - simplified for WebDAV tests
backend/http/webdav_test.go:800
↓ 5 callersFunctionnormalizeArchiveEntryName
normalizeArchiveEntryName turns a raw zip/tar name into a safe relative path (slash-separated). Many Windows zips use backslashes; some start with a l
backend/http/archive.go:910
↓ 5 callersFunctionpathKey
pathKey returns the cache key for shareByPath (source + path).
backend/database/share/storage.go:68
↓ 5 callersMethodremove
(id)
frontend/src/utils/downloadManager.js:68
↓ 5 callersFunctionremoveTrailingSlash
(str)
frontend/src/utils/url.js:147
↓ 5 callersFunctionresolveOnlyOfficeDownloadURL
resolveOnlyOfficeDownloadURL validates a callback document URL against integrations.office.url and optionally rewrites the origin to integrations.offi
backend/http/onlyOffice.go:363
↓ 5 callersFunctionretryAfterSeconds
(lim *rate.Limiter)
backend/http/auth_ratelimit.go:114
↓ 5 callersFunctionscanRow
(rows *sql.Rows)
backend/database/sql/index.go:1331
↓ 5 callersFunctionsetContentDisposition
(w http.ResponseWriter, r *http.Request, fileName string)
backend/http/download.go:97
↓ 5 callersFunctionsetUserInResponseWriter
Helper function to set the user in the ResponseWriterWrapper
backend/http/middleware.go:714
↓ 5 callersFunctionsetupMutateTestIndex
(t *testing.T)
backend/indexing/mutate_test.go:20
↓ 5 callersFunctiontokenBucketLimiter
(c *cache.KeyCache[*rate.Limiter], key string, requestsPerMinute, burst int)
backend/http/auth_ratelimit.go:98
↓ 5 callersFunctionwithPermShare
(fn handleFunc)
backend/http/middleware.go:606
↓ 4 callersMethodBulkInsertItems
BulkInsertItems inserts multiple items in a single transaction for a specific source. Database errors (busy/locked) are treated as soft failures - the
backend/database/sql/index.go:310
↓ 4 callersMethodCreateMockData
(numDirs, numFilesPerDir int)
backend/indexing/mock.go:11
↓ 4 callersMethodCreatePreview
CreatePreview resizes an image from a reader with the given options
backend/preview/preview.go:628
↓ 4 callersFunctionDeleteFiles
(source, absPath string, isDir bool)
backend/adapters/fs/files/files.go:582
↓ 4 callersMethodFlush
()
backend/http/middleware.go:855
↓ 4 callersMethodGetByPath
(path string)
backend/database/dbindex/storage.go:13
↓ 4 callersMethodGetImageOrientation
GetImageOrientation extracts the EXIF orientation from an image file using exiftool
backend/ffmpeg/image.go:18
↓ 4 callersFunctionGetIndex
(name string)
backend/indexing/mutate.go:226
↓ 4 callersMethodGetScopeForSourcePath
GetScopeForSourcePath returns the scope for a given source path (backend-style) This method works with backend-style scopes where Name is the source p
backend/database/users/users.go:238
↓ 4 callersMethodHasAnyVisibleItems
HasAnyVisibleItems checks if a user has access to any items in a given parent path. This is used to determine if a user should see a folder's contents
backend/database/access/access.go:1060
↓ 4 callersMethodLoad
(ctx context.Context, key string)
backend/http/preview.go:25
↓ 4 callersMethodRename
(ctx context.Context, oldPath, newPath string)
backend/http/webdav.go:317
↓ 4 callersMethodResize
(ctx context.Context, in io.Reader, out io.Writer, opts ResizeOptions)
backend/preview/image.go:170
↓ 4 callersFunctionaddCustomTheme
(name, description, cssFilePath string)
backend/common/settings/styling.go:78
↓ 4 callersFunctionbase64ToArrayBuffer
(base64url)
frontend/src/api/auth.js:199
↓ 4 callersFunctioncancelBody
()
frontend/src/api/resources.js:269
↓ 4 callersFunctioncomputeNextSlotTime
computeNextSlotTime returns the next scheduled slot after a scan completes. interval must be one of scanScheduleTiers; alignment uses that interval as
backend/indexing/indexingSchedulerLoop.go:24
↓ 4 callersFunctionconvertToFrontendShareResponse
convertToFrontendShareResponse converts shares to response format with usernames
backend/http/share.go:36
↓ 4 callersFunctioncopyDestLabel
(page: import("@playwright/test").Page)
frontend/tests/playwright/noauth/file-actions.spec.ts:4
↓ 4 callersFunctioncreateTestSourceFile
Helper to create test source files for comment parsing
backend/common/settings/generator_test.go:28
↓ 4 callersMethoddeleteCorruptedDatabase
deleteCorruptedDatabase deletes the corrupted database file and associated files.
backend/database/sql/index.go:201
↓ 4 callersMethoddirectoryExists
directoryExists checks if the scanner's directory still exists
backend/indexing/indexingScanner.go:545
↓ 4 callersMethodfindById
(id)
frontend/src/utils/downloadManager.js:29
↓ 4 callersMethodgetNumDirsUnlocked
getNumDirsUnlocked calculates NumDirs without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:172
↓ 4 callersFunctiongetOnlyOfficeId
(realpath string)
backend/http/onlyOffice.go:748
↓ 4 callersFunctiongetPreviewOptions
getPreviewOptions returns resize options for the given preview size
backend/preview/preview.go:596
↓ 4 callersFunctiongetTypeInfo
(mimeType)
frontend/src/utils/mimetype.js:41
↓ 4 callersMethodindexDirectory
Define a function to recursively index files and directories
backend/indexing/indexingFiles.go:597
↓ 4 callersMethodon
(event, callback)
frontend/src/store/eventBus.js:12
↓ 4 callersMethodopen
(key string)
backend/adapters/fs/diskcache/file_cache.go:135
↓ 4 callersFunctionopenFile
(t *testing.T, name string)
backend/preview/image_test.go:357
← previousnext →101–200 of 1,657, ranked by callers