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
↓ 1 callers
Method
RevokeToken
RevokeToken adds a token hash to the revoked list and persists to DB.
backend/database/access/access.go:1264
↓ 1 callers
Method
Save
Save wraps StorageBackend.Save
backend/database/dbindex/storage.go:131
↓ 1 callers
Method
Save
(obj *T)
backend/database/crud/crud.go:7
↓ 1 callers
Method
SearchItems
SearchItems queries the database for items matching the search criteria for a single source. When nameGlobPatterns is non-empty (and largest is false)
backend/database/sql/search.go:41
↓ 1 callers
Method
SearchItemsMultiSource
SearchItemsMultiSource queries the database for items matching the search criteria across multiple sources. When nameGlobPatterns is non-empty (and la
backend/database/sql/search.go:70
↓ 1 callers
Function
SearchMultiSourcesParsed
SearchMultiSourcesParsed searches multiple sources using pre-built options.
backend/indexing/search.go:204
↓ 1 callers
Method
SetStatus
(status IndexStatus)
backend/indexing/indexingFiles.go:1497
↓ 1 callers
Method
SetUsage
(totalDiskSize, partitionUsed, UsedAsIndexed uint64)
backend/indexing/indexingFiles.go:1486
↓ 1 callers
Function
ShouldBubbleUpToFolderPreview
ShouldBubbleUpToFolderPreview checks if a file type should be used for folder previews. Only images, videos, and audio files with album art should bub
backend/indexing/iteminfo/mediaMeta.go:410
↓ 1 callers
Function
ShouldServeOriginalImage
ShouldServeOriginalImage reports whether an on-disk image is already within preview bounds.
backend/preview/preview.go:587
↓ 1 callers
Function
SplitByMultiple
(str string)
backend/cmd/cli.go:420
↓ 1 callers
Method
SyncFolderSizesToDB
SyncFolderSizesToDB syncs in-memory folder sizes to the database after a scan completes Only syncs folders marked as dirty (changed) and processes in
backend/indexing/indexingFiles.go:1174
↓ 1 callers
Method
Sys
()
backend/indexing/getDirInfoCore_test.go:325
↓ 1 callers
Function
ToInt
(str string)
backend/indexing/iteminfo/conditions.go:327
↓ 1 callers
Method
UpdateFolderSizesIfChanged
UpdateFolderSizesIfChanged updates ONLY the size field for folders where the size actually changed This is a single SQL operation that filters unchang
backend/database/sql/index.go:1033
↓ 1 callers
Method
UpdateRulePath
UpdateRulePath updates the path for a specific access rule (used by PATCH API endpoint).
backend/database/access/access.go:1237
↓ 1 callers
Method
UpdateRules
UpdateRules updates all access rules that match oldPath to point to newPath. Handles both exact matches and subdirectories. Similar to share.Storage.U
backend/database/access/access.go:1189
↓ 1 callers
Method
UpdateSharePath
UpdateSharePath updates the path for a specific share identified by hash
backend/database/share/storage.go:362
↓ 1 callers
Method
UpdateShares
UpdateShares updates all shares that match oldSource and oldPath to point to newSource and newPath. Handles both exact matches and subdirectories, reg
backend/database/share/storage.go:324
↓ 1 callers
Function
ValidateJwtAuth
ValidateJwtAuth checks JWT config and sets defaults. Call when JWT auth is enabled.
backend/common/settings/auth.go:281
↓ 1 callers
Method
ValidateOrigin
ValidateOrigin checks if the given origin is in the configured whitelist. Returns true if the origin is allowed, false otherwise.
backend/auth/webauthn.go:70
↓ 1 callers
Function
VerifyTotpCode
(user *users.User, code string, userStore *users.Storage)
backend/auth/totp.go:148
↓ 1 callers
Function
acceptsGzip
(r *http.Request)
backend/http/middleware.go:850
↓ 1 callers
Method
acquireImageLargeSem
(ctx context.Context)
backend/preview/preview.go:143
↓ 1 callers
Function
addMetadataToChildren
addMetadataToChildren runs concurrent ffmpeg/tag extraction for audio/video children. Each goroutine is registered on wg. Caller must invoke wg.Wait()
backend/adapters/fs/files/files.go:37
↓ 1 callers
Function
addVersionSuffix
(source string)
backend/http/resource.go:1081
↓ 1 callers
Function
allowAuthenticated
(username string)
backend/http/auth_ratelimit.go:158
↓ 1 callers
Function
allowCredential
(r *http.Request, loginUsername string)
backend/http/auth_ratelimit.go:125
↓ 1 callers
Function
allowModerate
(r *http.Request)
backend/http/auth_ratelimit.go:140
↓ 1 callers
Function
allowOIDC
(r *http.Request)
backend/http/auth_ratelimit.go:149
↓ 1 callers
Function
appendArchiveTokenToUrl
(url, token)
frontend/src/api/resources.js:244
↓ 1 callers
Function
applyOrientationToPreviewBytes
applyOrientationToPreviewBytes applies EXIF orientation to image bytes using the imaging library. orientation is the string from exiftool -Orientation
backend/preview/image.go:281
↓ 1 callers
Function
archiveAttachmentStem
archiveAttachmentStem is the filename stem (no extension) for Content-Disposition on multi-item / directory downloads. It prefers the client file path
backend/http/archive.go:128
↓ 1 callers
Function
archiveDisplayFileName
(format, files)
frontend/src/api/resources.js:301
↓ 1 callers
Function
archiveGetDeliversThroughEOF
archiveGetDeliversThroughEOF reports whether this GET serves through the last byte (full body or Range that ends at size-1).
backend/http/archive.go:88
↓ 1 callers
Method
attemptBulkInsert
attemptBulkInsert runs one transactional bulk insert. Returns success=true when committed; transient=true when SQLITE_BUSY-like errors allow a retry (
backend/database/sql/index.go:345
↓ 1 callers
Function
authLockoutRetryAfterSecs
()
backend/http/auth_ratelimit.go:174
↓ 1 callers
Function
authenticateLDAP
(username, password string)
backend/http/ldap.go:44
↓ 1 callers
Function
authenticateShareRequest
(r *http.Request, l *share.Link)
backend/http/auth.go:393
↓ 1 callers
Function
buildOnlyOfficeCallbackURL
buildOnlyOfficeCallbackURL constructs the callback URL that OnlyOffice server will use to notify us of changes
backend/http/onlyOffice.go:302
↓ 1 callers
Function
buildOnlyOfficeDownloadURL
buildOnlyOfficeDownloadURL constructs the download URL that OnlyOffice server will use to fetch the file
backend/http/onlyOffice.go:258
↓ 1 callers
Function
buildPathMapRecursive
buildPathMapRecursive recursively builds the path mapping using reflection
backend/common/settings/generator.go:250
↓ 1 callers
Function
buildStructPathMap
buildStructPathMap builds a dynamic mapping from YAML paths to Go struct types/fields using reflection
backend/common/settings/generator.go:240
↓ 1 callers
Function
calculateDirScore
calculateDirScore returns a 1-10 score based on directory count
backend/indexing/indexingSchedule.go:91
↓ 1 callers
Function
calculateTimeScore
calculateTimeScore returns a 1-10 score based on scan time
backend/indexing/indexingSchedule.go:62
↓ 1 callers
Function
callback
(params, hash = null)
frontend/src/api/office.js:30
↓ 1 callers
Function
check
()
frontend/src/utils/auth.js:108
↓ 1 callers
Method
checkAccessibilityProbe
checkAccessibilityProbe verifies the DB file is readable: sqlite_master and optionally one row from index_items. If index_items is absent (brand-new f
backend/database/sql/index.go:147
↓ 1 callers
Method
checkForNewChildDirectories
checkForNewChildDirectories detects new top-level directories and creates scanners for them Also detects deleted directories and signals their scanner
backend/indexing/indexingScanner.go:363
↓ 1 callers
Method
checkIntegrityAndRecreateIfNeeded
checkIntegrityAndRecreateIfNeeded checks database integrity. If corruption is detected, deletes the database file and returns an error to trigger recr
backend/database/sql/index.go:179
↓ 1 callers
Method
chunkSizeBytes
()
frontend/src/utils/upload.js:460
↓ 1 callers
Method
cleanupExpiredSessions
()
backend/auth/webauthn.go:229
↓ 1 callers
Function
clearAuthLockout
(ip, username string)
backend/http/auth_ratelimit.go:183
↓ 1 callers
Function
clearReconnect
()
frontend/src/notify/events.js:43
↓ 1 callers
Function
closeToast
(toastId)
frontend/src/notify/message.js:480
↓ 1 callers
Function
combineYAMLFiles
combineYAMLFiles combines multiple YAML files from a directory into a single YAML document This allows YAML anchors defined in one file to be referenc
backend/common/settings/yaml.go:19
↓ 1 callers
Function
computeHeaderChecksum
computeHeaderChecksum calculates MD5 hash of only the first 8KB of a file This is the fastest initial pass to eliminate non-matching files
backend/http/duplicates.go:695
↓ 1 callers
Function
computeMiddleChecksum
computeMiddleChecksum calculates MD5 hash of header + middle portion Only called when header checksums match (progressive verification)
backend/http/duplicates.go:730
↓ 1 callers
Method
computePermitted
(sourcePath, indexPath, username string)
backend/database/access/access.go:344
↓ 1 callers
Function
configureImagingParallelism
configureImagingParallelism limits kovidgoyal/imaging to one thread per resize. Concurrent preview jobs are capped separately by imageSem (like OG fil
backend/preview/image.go:18
↓ 1 callers
Method
convertHEICToJPEGWithFFmpeg
convertHEICToJPEGWithFFmpeg converts a HEIC file to JPEG format using FFmpeg This function handles all FFmpeg-related logic and parameters
backend/preview/heic_ffmpeg.go:10
↓ 1 callers
Method
convertImageWithFFmpeg
convertImageWithFFmpeg converts any image file (including problematic JPEGs) to resized JPEG using FFmpeg This is used as a fallback for JPEG files th
backend/preview/heic_ffmpeg.go:49
↓ 1 callers
Function
copyDirectory
copyDirectory handles copying directories recursively.
backend/adapters/fs/fileutils/file.go:147
↓ 1 callers
Function
createConfig
createConfig orchestrates the configuration process by asking the user a series of questions.
backend/cmd/cli.go:302
↓ 1 callers
Function
createOnlyOfficeLogContext
Helper functions for OnlyOffice log context management
backend/http/httpEvents.go:125
↓ 1 callers
Function
createTarGzWithLevel
createTarGzWithLevel writes a tar.gz archive into w with the given gzip compression level (0=default, 1-9).
backend/http/archive.go:679
↓ 1 callers
Function
credentialToLibrary
credentialToLibrary converts our BoltDB-safe WebAuthnCredential to the library's Credential.
backend/database/users/webauthn.go:42
↓ 1 callers
Function
dbExists
(path string)
backend/database/storage/storage.go:59
↓ 1 callers
Function
decodeLastRune
Helper function to check if last rune is valid
backend/adapters/fs/files/content_test.go:132
↓ 1 callers
Function
decryptSecret
decryptSecret uses AES-GCM to decrypt a ciphertext using its key and nonce. It returns the plaintext secret or an error.
backend/auth/totp.go:114
↓ 1 callers
Function
deleteOfficeId
(source, path string)
backend/http/onlyOffice.go:758
↓ 1 callers
Function
deriveWebAuthnConfig
(cfg *settings.PasskeyAuthConfig)
backend/auth/webauthn.go:253
↓ 1 callers
Function
detectExternalSubtitles
detectExternalSubtitles finds external subtitle files in the same directory
backend/ffmpeg/subtitles.go:126
↓ 1 callers
Function
determineSourceType
determineSourceType determines which type of favicon source we have
backend/icons/generator.go:36
↓ 1 callers
Function
docEnabled
()
backend/preview/doc.go:20
↓ 1 callers
Function
downloadChunked
(file, shareHash = "")
frontend/src/api/resources.js:551
↓ 1 callers
Function
downloadChunkedArchive
(url, format, files, filePaths, source, shareHash)
frontend/src/api/resources.js:470
↓ 1 callers
Method
earliestSlotWake
(now time.Time)
backend/indexing/indexingSchedulerLoop.go:103
↓ 1 callers
Function
ecdsaCurveMatchesAlgorithm
(algorithm string, pub *ecdsa.PublicKey)
backend/auth/jwt.go:138
↓ 1 callers
Method
emit
(event, data)
frontend/src/store/eventBus.js:8
↓ 1 callers
Function
encodePath
(str)
frontend/src/utils/url.js:58
↓ 1 callers
Function
encodedPath
(path)
frontend/src/utils/url.js:248
↓ 1 callers
Function
encryptSecret
encryptSecret uses AES-GCM to encrypt a plaintext secret. It returns the base64-encoded ciphertext and nonce, or an error.
backend/auth/totp.go:87
↓ 1 callers
Method
ensureScanUpdatedPaths
ensureScanUpdatedPaths initializes scan path tracking for the current scan session.
backend/indexing/indexingScanner.go:506
↓ 1 callers
Method
evaluateIndexRules
evaluateIndexRules checks if a path should be accessible based on index rules Returns whether the path is viewable and/or indexable Does NOT check use
backend/indexing/indexingFiles.go:494
↓ 1 callers
Method
evaluateRuleForUser
evaluateRuleForUser evaluates a single rule for a user and returns if a specific rule was found.
backend/database/access/access.go:410
↓ 1 callers
Function
eventRouter
(eventType, message)
frontend/src/notify/events.js:156
↓ 1 callers
Function
eventTheme
()
frontend/src/store/state.js:222
↓ 1 callers
Function
extractGroupsFromOIDCClaims
extractGroupsFromOIDCClaims extracts groups from OIDC claims supporting nested paths. Supports both direct claims (e.g., "groups") and nested claims u
backend/http/oidc.go:56
↓ 1 callers
Function
extractSourceFromPath
(url)
frontend/src/utils/url.js:226
↓ 1 callers
Function
extractTarGz
(archivePath, destDir string)
backend/http/archive.go:1174
↓ 1 callers
Function
extractUserFromExpiredToken
extractUserFromExpiredToken attempts to extract user information from an expired token This is used by withOrWithoutUserHelper to get user context eve
backend/http/middleware.go:181
↓ 1 callers
Function
fileExists
(filename string)
backend/adapters/fs/diskcache/file_cache_test.go:66
↓ 1 callers
Function
filenamesSimilar
filenamesSimilar checks if two normalized filenames are similar enough to be considered duplicates
backend/http/duplicates.go:849
↓ 1 callers
Function
filterFilesByPermission
filterFilesByPermission filters files to only include those the user is permitted to access This is called early in the duplicate search process to av
backend/http/duplicates.go:946
↓ 1 callers
Function
finalizeResponse
finalizeResponse handles final response adjustments (OnlyOffice ID, scope stripping).
backend/adapters/fs/files/files.go:93
↓ 1 callers
Function
findDuplicatesInIndex
findDuplicatesInIndex finds duplicates using the shared IndexDB with resource limits
backend/http/duplicates.go:248
↓ 1 callers
Function
findRasterCompanion
findRasterCompanion looks for a raster companion file for an SVG favicon Returns the companion data and path, or error if not found
backend/icons/generator.go:69
↓ 1 callers
Function
findSubtitleTrack
(subtitles []utils.SubtitleTrack, name string, embedded bool)
backend/http/media.go:95
↓ 1 callers
Function
formatAttestationResponse
(cred)
frontend/src/api/auth.js:248
← previous
next →
601–700 of 1,657, ranked by callers