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
↓ 8 callers
Method
Store
(ctx context.Context, key string, value []byte)
backend/http/preview.go:24
↓ 8 callers
Function
arrayBufferToBase64
(buffer)
frontend/src/api/auth.js:190
↓ 8 callers
Function
createTestUsersBackend
(t *testing.T)
backend/database/storage/bolt/users_test.go:38
↓ 8 callers
Function
errorMsg
Helper function to create error messages dynamically
backend/indexing/iteminfo/conditions_test.go:11
↓ 8 callers
Function
safeExtractPath
safeExtractPath ensures name does not escape destDir (no ".." or drive-root / UNC tricks).
backend/http/archive.go:946
↓ 8 callers
Method
sendEvent
expects message with double quotes around string
backend/http/httpEvents.go:21
↓ 8 callers
Function
setupTestIndex
setupTestIndex creates a test index with mock data (no filesystem dependencies)
backend/indexing/indexingFiles_test.go:13
↓ 8 callers
Function
withUserHelper
Middleware to retrieve and authenticate user
backend/http/middleware.go:341
↓ 7 callers
Method
Search
Search parses query and delegates to SearchParsed (legacy / tests).
backend/indexing/search.go:32
↓ 7 callers
Function
buildNodeWithDefaults
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 callers
Function
editUserTrigger
Edit opener: `role="button"` div with `$t('general.edit')` (typically "Edit").
frontend/tests/playwright/settings/user-actions.spec.ts:11
↓ 7 callers
Function
formatMatcher
(format Format)
backend/preview/image_test.go:273
↓ 7 callers
Function
getBuffer
getBuffer gets a buffer from the pool
backend/preview/buffer_pool.go:18
↓ 7 callers
Function
getRemoteIP
(r *http.Request)
backend/http/middleware.go:723
↓ 7 callers
Function
getShareURL
(r *http.Request, hash string, isDirectDownload bool, token string)
backend/http/share.go:579
↓ 7 callers
Function
notifyUpdate
* Notify listeners that notifications have changed
frontend/src/notify/message.js:77
↓ 7 callers
Function
putBuffer
putBuffer returns a buffer to the pool
backend/preview/buffer_pool.go:29
↓ 7 callers
Method
setStatus
(id, status)
frontend/src/utils/downloadManager.js:42
↓ 7 callers
Method
useAdaptiveScheduling
useAdaptiveScheduling is true when the index uses tiered/aligned scheduling (IndexingInterval == 0).
backend/indexing/indexingFiles.go:1555
↓ 7 callers
Function
userRowInSettingsUsersTable
Users tab uses SettingsTable (no `tr.item`); scoped to `.settings-table` body rows only.
frontend/tests/playwright/settings/user-actions.spec.ts:6
↓ 7 callers
Function
withOrWithoutUser
(fn handleFunc)
backend/http/middleware.go:622
↓ 6 callers
Function
CollectCommentsAndSecrets
CollectCommentsAndSecrets parses all Go source and returns comments, secrets, and deprecated field mappings
backend/common/settings/generator.go:43
↓ 6 callers
Function
GenerateConfigYamlWithSource
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 callers
Method
GetFolderSize
GetFolderSize retrieves the size for a directory from the in-memory map
backend/indexing/mutate.go:379
↓ 6 callers
Method
GetScannerStatus
GetScannerStatus returns detailed information about all active scanners
backend/indexing/indexingSchedule.go:345
↓ 6 callers
Method
Gets
()
backend/database/users/storage.go:24
↓ 6 callers
Method
ModTime
()
backend/http/webdav.go:32
↓ 6 callers
Method
Mode
()
backend/indexing/getDirInfoCore_test.go:322
↓ 6 callers
Function
NewPreviewGenerator
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 callers
Method
String
()
backend/common/settings/structs.go:136
↓ 6 callers
Method
checkAccess
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 callers
Function
checkTogglePersistence
(page: Page, settingName: string)
frontend/tests/playwright/settings/user-actions.spec.ts:156
↓ 6 callers
Method
createScanner
createChildScanner creates a scanner for a specific child directory (recursive)
backend/indexing/indexingSchedule.go:334
↓ 6 callers
Method
getActiveScannerPathUnlocked
getActiveScannerPathUnlocked returns the path of the currently active scanner, or empty string if none
backend/indexing/indexingFiles.go:1513
↓ 6 callers
Method
processQueue
()
frontend/src/utils/upload.js:245
↓ 6 callers
Function
setLanguage
(locale: string)
frontend/src/i18n/index.ts:82
↓ 6 callers
Function
startDownload
(config, files, hash = "", options = {})
frontend/src/utils/download.js:82
↓ 6 callers
Function
testVideoPreviewConfig
Helper function to test video preview configuration
backend/common/settings/video_preview_test.go:298
↓ 6 callers
Method
updateProgress
(upload, progress)
frontend/src/utils/upload.js:532
↓ 5 callers
Method
DenyAll
DenyAll sets a rule to deny all access for a given source and index path.
backend/database/access/access.go:304
↓ 5 callers
Function
GenerateConfigYaml
GenerateConfigYaml generates YAML from a given config with options for comments and filtering
backend/common/settings/generator.go:903
↓ 5 callers
Method
GetOrientationFilter
GetOrientationFilter converts EXIF orientation to FFmpeg filter
backend/ffmpeg/image.go:41
↓ 5 callers
Method
GetSourceName
()
backend/database/share/extended.go:150
↓ 5 callers
Method
IsViewable
IsViewable checks if a path is viewable (allows FS access) Only checks the item itself, not parent paths
backend/indexing/indexingFiles.go:1296
↓ 5 callers
Function
NewIndexDB
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 callers
Method
OpenFile
(ctx context.Context, requestPath string, flag int, perm os.FileMode)
backend/http/webdav.go:265
↓ 5 callers
Method
Save
Save wraps a StorageBackend.Save.
backend/auth/storage.go:64
↓ 5 callers
Method
Size
()
backend/indexing/getDirInfoCore_test.go:321
↓ 5 callers
Function
ValidateLdapAuth
ValidateLdapAuth checks LDAP config and sets defaults. Call when LDAP is enabled.
backend/common/settings/auth.go:129
↓ 5 callers
Method
add
(basePath, items, overwrite = false)
frontend/src/utils/upload.js:68
↓ 5 callers
Function
confirmActorPasswordPrompt
* 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 callers
Method
deleteFromCacheLocked
deleteFromCacheLocked removes the link (by hash) from both caches. Caller must hold s.mu.
backend/database/share/storage.go:97
↓ 5 callers
Function
getContent
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 callers
Function
getObjectProperty
(obj, key)
frontend/src/utils/object.js:13
↓ 5 callers
Method
getOrCreateRuleNL
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 callers
Function
getScheme
(r *http.Request)
backend/http/middleware.go:861
↓ 5 callers
Function
initTestIndex
Helper function to initialize a test index - simplified for WebDAV tests
backend/http/webdav_test.go:800
↓ 5 callers
Function
normalizeArchiveEntryName
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 callers
Function
pathKey
pathKey returns the cache key for shareByPath (source + path).
backend/database/share/storage.go:68
↓ 5 callers
Method
remove
(id)
frontend/src/utils/downloadManager.js:68
↓ 5 callers
Function
removeTrailingSlash
(str)
frontend/src/utils/url.js:147
↓ 5 callers
Function
resolveOnlyOfficeDownloadURL
resolveOnlyOfficeDownloadURL validates a callback document URL against integrations.office.url and optionally rewrites the origin to integrations.offi
backend/http/onlyOffice.go:363
↓ 5 callers
Function
retryAfterSeconds
(lim *rate.Limiter)
backend/http/auth_ratelimit.go:114
↓ 5 callers
Function
scanRow
(rows *sql.Rows)
backend/database/sql/index.go:1331
↓ 5 callers
Function
setContentDisposition
(w http.ResponseWriter, r *http.Request, fileName string)
backend/http/download.go:97
↓ 5 callers
Function
setUserInResponseWriter
Helper function to set the user in the ResponseWriterWrapper
backend/http/middleware.go:714
↓ 5 callers
Function
setupMutateTestIndex
(t *testing.T)
backend/indexing/mutate_test.go:20
↓ 5 callers
Function
tokenBucketLimiter
(c *cache.KeyCache[*rate.Limiter], key string, requestsPerMinute, burst int)
backend/http/auth_ratelimit.go:98
↓ 5 callers
Function
withPermShare
(fn handleFunc)
backend/http/middleware.go:606
↓ 4 callers
Method
BulkInsertItems
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 callers
Method
CreateMockData
(numDirs, numFilesPerDir int)
backend/indexing/mock.go:11
↓ 4 callers
Method
CreatePreview
CreatePreview resizes an image from a reader with the given options
backend/preview/preview.go:628
↓ 4 callers
Function
DeleteFiles
(source, absPath string, isDir bool)
backend/adapters/fs/files/files.go:582
↓ 4 callers
Method
Flush
()
backend/http/middleware.go:855
↓ 4 callers
Method
GetByPath
(path string)
backend/database/dbindex/storage.go:13
↓ 4 callers
Method
GetImageOrientation
GetImageOrientation extracts the EXIF orientation from an image file using exiftool
backend/ffmpeg/image.go:18
↓ 4 callers
Function
GetIndex
(name string)
backend/indexing/mutate.go:226
↓ 4 callers
Method
GetScopeForSourcePath
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 callers
Method
HasAnyVisibleItems
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 callers
Method
Load
(ctx context.Context, key string)
backend/http/preview.go:25
↓ 4 callers
Method
Rename
(ctx context.Context, oldPath, newPath string)
backend/http/webdav.go:317
↓ 4 callers
Method
Resize
(ctx context.Context, in io.Reader, out io.Writer, opts ResizeOptions)
backend/preview/image.go:170
↓ 4 callers
Function
addCustomTheme
(name, description, cssFilePath string)
backend/common/settings/styling.go:78
↓ 4 callers
Function
base64ToArrayBuffer
(base64url)
frontend/src/api/auth.js:199
↓ 4 callers
Function
cancelBody
()
frontend/src/api/resources.js:269
↓ 4 callers
Function
computeNextSlotTime
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 callers
Function
convertToFrontendShareResponse
convertToFrontendShareResponse converts shares to response format with usernames
backend/http/share.go:36
↓ 4 callers
Function
copyDestLabel
(page: import("@playwright/test").Page)
frontend/tests/playwright/noauth/file-actions.spec.ts:4
↓ 4 callers
Function
createTestSourceFile
Helper to create test source files for comment parsing
backend/common/settings/generator_test.go:28
↓ 4 callers
Method
deleteCorruptedDatabase
deleteCorruptedDatabase deletes the corrupted database file and associated files.
backend/database/sql/index.go:201
↓ 4 callers
Method
directoryExists
directoryExists checks if the scanner's directory still exists
backend/indexing/indexingScanner.go:545
↓ 4 callers
Method
findById
(id)
frontend/src/utils/downloadManager.js:29
↓ 4 callers
Method
getNumDirsUnlocked
getNumDirsUnlocked calculates NumDirs without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:172
↓ 4 callers
Function
getOnlyOfficeId
(realpath string)
backend/http/onlyOffice.go:748
↓ 4 callers
Function
getPreviewOptions
getPreviewOptions returns resize options for the given preview size
backend/preview/preview.go:596
↓ 4 callers
Function
getTypeInfo
(mimeType)
frontend/src/utils/mimetype.js:41
↓ 4 callers
Method
indexDirectory
Define a function to recursively index files and directories
backend/indexing/indexingFiles.go:597
↓ 4 callers
Method
on
(event, callback)
frontend/src/store/eventBus.js:12
↓ 4 callers
Method
open
(key string)
backend/adapters/fs/diskcache/file_cache.go:135
↓ 4 callers
Function
openFile
(t *testing.T, name string)
backend/preview/image_test.go:357
← previous
next →
101–200 of 1,657, ranked by callers