MCPcopy Index your code

hub / github.com/gtsteffaniak/filebrowser / functions

Functions1,657 in github.com/gtsteffaniak/filebrowser

↓ 235 callersMethodGet
(id interface{})
backend/database/users/storage.go:23
↓ 166 callersMethodQuery
Query executes a query that returns rows. This is a convenience method that handles locking.
backend/database/sql/sqlite.go:400
↓ 113 callersMethodClose
Close closes the database connection and removes the temporary file if it is not persistent.
backend/database/sql/sqlite.go:415
↓ 111 callersMethodSet
(key string, value []byte)
backend/adapters/fs/diskcache/file_cache.go:21
↓ 97 callersMethodPermitted
Permitted checks if a username is permitted for a given sourcePath and indexPath, recursively checking parent directories.
backend/database/access/access.go:317
↓ 78 callersFunctionemitStateChanged
()
frontend/src/store/eventBus.js:43
↓ 69 callersFunctiongetApiPath
(path, params = {}, skipEncode = false, isPublic = false)
frontend/src/utils/url.js:93
↓ 64 callersMethodStat
(ctx context.Context, requestPath string)
backend/http/webdav.go:336
↓ 57 callersFunctionrenderJSON
(w http.ResponseWriter, r *http.Request, data interface{}, statusCode ...int)
backend/http/middleware.go:813
↓ 45 callersMethodAdd
Add records a pinned item name under sourcePath and indexDirPath.
backend/database/users/pinned_items.go:6
↓ 45 callersMethodRemove
Remove deletes a pinned item name and prunes empty map entries.
backend/database/users/pinned_items.go:21
↓ 44 callersFunctioncreateTestUser
(t *testing.T, userStore *users.Storage, username string)
backend/database/access/access_test.go:26
↓ 43 callersMethodSave
(user *User, changePass bool, disableScopeChange bool)
backend/database/users/storage.go:26
↓ 43 callersFunctionboolPtr
boolPtr returns a pointer to a bool value
backend/common/settings/settings.go:11
↓ 40 callersMethodName
()
backend/http/webdav.go:29
↓ 38 callersFunctionwithUser
(fn handleFunc)
backend/http/middleware.go:618
↓ 36 callersMethodOpen
Implement the Open method for dirFS, which wraps http.Dir
backend/adapters/fs/fileutils/assets.go:18
↓ 35 callersFunctionfetchURL
(url, opts, auth = true)
frontend/src/api/utils.js:5
↓ 32 callersMethodInsertItem
(source, path string, info *iteminfo.FileInfo)
backend/database/sql/index.go:264
↓ 30 callersMethodAllowUser
AllowUser adds a user to the allow list for a given source and index path.
backend/database/access/access.go:251
↓ 30 callersMethodScan
Scan implements the Scanner interface.
backend/preview/image_enum.go:99
↓ 28 callersFunctioncreateTestStorage
(t *testing.T)
backend/database/access/access_test.go:15
↓ 27 callersMethodLoadFromDB
LoadFromDB loads all rules from the DB if DB is set.
backend/database/access/access.go:113
↓ 26 callersMethodGetScopeForSourceName
GetScopeForSourceName returns the scope for a given source name (frontend-style) Uses the global SourceNameResolver to convert source names to paths
backend/database/users/users.go:249
↓ 26 callersMethodMakeIndexPath
input should be non-index path. isDir indicates whether the path is a directory (true) or file (false). Directories will have a trailing slash added,
backend/indexing/indexingFiles.go:1520
↓ 26 callersMethodWrite
(p []byte)
backend/http/download.go:71
↓ 25 callersMethodIsDir
()
backend/http/webdav.go:33
↓ 24 callersMethodSaveToDB
SaveToDB persists all rules to the DB if DB is set. IMPORTANT: Caller must hold s.mux lock (either read or write).
backend/database/access/access.go:88
↓ 24 callersMethodUpdate
(user *User, adminActor bool, fields ...string)
backend/database/users/storage.go:25
↓ 23 callersMethodGetFrontendRules
GetRule retrieves a rule for a sourcePath and indexPath.
backend/database/access/access.go:452
↓ 23 callersMethodGetRealPath
(relativePath ...string)
backend/indexing/indexingFiles.go:997
↓ 23 callersFunctioncheckForNotification
(page: Page, message: string | RegExp)
frontend/tests/playwright/test-setup.ts:187
↓ 22 callersMethodDenyUser
DenyUser adds a user to the deny list for a given source and index path.
backend/database/access/access.go:232
↓ 22 callersMethodExec
Exec executes a SQL statement that doesn't return rows. This is a convenience method that handles locking.
backend/database/sql/sqlite.go:392
↓ 21 callersFunctionisBusyError
isBusyError checks if an error is SQLITE_BUSY (error code 5)
backend/database/sql/index.go:426
↓ 21 callersFunctionisTransactionError
isTransactionError checks if an error is related to nested transactions (error code 1)
backend/database/sql/index.go:436
↓ 19 callersMethodwithStatsLock
(fn func())
backend/indexing/indexingScanner.go:46
↓ 18 callersMethodGet
()
backend/common/settings/storage.go:9
↓ 18 callersFunctionerrToStatus
(err error)
backend/http/utils.go:11
↓ 18 callersFunctionsendOnlyOfficeLogEvent
(context *OnlyOfficeLogContext, level, component, message string)
backend/http/httpEvents.go:156
↓ 17 callersMethodQueryRow
QueryRow executes a query that is expected to return at most one row. This is a convenience method that handles locking.
backend/database/sql/sqlite.go:408
↓ 17 callersMethodShouldSkip
ShouldSkip checks if a path should be skipped from indexing isRoutineScan: true for scanner (no parent checks), false for API (check parents)
backend/indexing/indexingFiles.go:1381
↓ 17 callersMethodclearAllCaches
clearAllCaches clears ALL caches. This should be called whenever rules are created, updated, or deleted.
backend/database/access/access.go:180
↓ 17 callersFunctionnewGrayJpeg
(t *testing.T, width, height int)
backend/preview/image_test.go:282
↓ 17 callersFunctionsetupTestSources
()
backend/database/access/access_test.go:34
↓ 16 callersFunctiongetPublicApiPath
(path, params = {}, skipEncode = false)
frontend/src/utils/url.js:143
↓ 16 callersFunctionsizeMatcher
(width, height int)
backend/preview/image_test.go:263
↓ 16 callersFunctiontranslate
(key: string)
frontend/src/router/index.ts:15
↓ 16 callersFunctionwithHashFile
(fn handleFunc)
backend/http/middleware.go:610
↓ 15 callersMethodGetReducedMetadata
GetMetadataInfo retrieves the FileInfo from the specified file or directory in the index.
backend/indexing/mutate.go:121
↓ 15 callersMethodSeek
(offset int64, whence int)
backend/http/download.go:52
↓ 15 callersMethodString
String implements the Stringer interface.
backend/preview/image_enum.go:53
↓ 15 callersFunctioncleanup
()
frontend/src/notify/events.js:22
↓ 15 callersMethodfindById
(id)
frontend/src/utils/upload.js:602
↓ 15 callersFunctionwithRateLimitChain
withRateLimitChain applies a rate limit tier then fn for nesting inside withUser / withOrWithoutUser / withoutUser.
backend/http/auth_ratelimit.go:66
↓ 14 callersMethodWriteHeader
WriteHeader captures the status code and ensures it's only written once
backend/http/middleware.go:694
↓ 14 callersFunctionfetchJSON
(url, opts)
frontend/src/api/utils.js:44
↓ 14 callersFunctionsetupConditionalTestIndex
setupConditionalTestIndex creates a test index with conditional rules configured
backend/indexing/conditionalRules_test.go:12
↓ 13 callersMethodGet
(key string)
backend/adapters/fs/diskcache/file_cache.go:20
↓ 13 callersMethodGetBy
(interface{})
backend/database/users/storage.go:13
↓ 13 callersMethodGetItem
GetItem retrieves a single item by path for a specific source. Returns nil on database busy/lock errors (non-fatal).
backend/database/sql/index.go:449
↓ 13 callersMethodGetMetadataInfo
raw directory info retrieval -- does not work on files, only returns a directory
backend/indexing/mutate.go:156
↓ 13 callersFunctionboolValueOrDefault
boolValueOrDefault returns the value of a bool pointer, or the default if nil
backend/common/settings/settings.go:16
↓ 13 callersFunctiongetOnlyOfficeLogContext
(documentID string)
backend/http/httpEvents.go:144
↓ 13 callersFunctionreturnOnlyOfficeError
returnOnlyOfficeError returns an error response to OnlyOffice server with proper status code
backend/http/onlyOffice.go:845
↓ 12 callersMethodDelete
(ctx context.Context, key string)
backend/http/preview.go:26
↓ 12 callersFunctionIsHidden
(realPath string)
backend/indexing/indexingFiles.go:1239
↓ 12 callersFunctionRefreshIndex
(source string, path string, isDir bool, recursive bool)
backend/adapters/fs/files/files.go:625
↓ 12 callersFunctioncreateTestUser
(t *testing.T, backend users.StorageBackend, username string, isAdmin bool)
backend/database/storage/bolt/users_test.go:48
↓ 11 callersMethodIsDir
()
backend/indexing/getDirInfoCore_test.go:324
↓ 11 callersMethodRead
(p []byte)
backend/http/download.go:38
↓ 11 callersMethodUpdateMetadata
UpdateMetadata persists a completed directory listing to the index. The directory row's has_preview reflects direct previewable children only (see Get
backend/indexing/mutate.go:17
↓ 11 callersFunctionadjustedData
(data)
frontend/src/api/utils.js:53
↓ 11 callersFunctionsortedItems
(items = [], sortby = "name", asc = true)
frontend/src/utils/sort.js:1
↓ 10 callersMethodAllowGroup
AllowGroup adds a group to the allow list for a given source and index path.
backend/database/access/access.go:287
↓ 10 callersMethodDeleteMetadata
DeleteMetadata removes the specified path from the index. SQLite handles locking automatically, so no mutex needed.
backend/indexing/mutate.go:103
↓ 10 callersMethodGetAllRules
GetAllRules returns all access rules as a map.
backend/database/access/access.go:496
↓ 10 callersMethodRemoveAll
(ctx context.Context, requestPath string)
backend/http/webdav.go:303
↓ 10 callersMethodSize
()
backend/http/webdav.go:30
↓ 10 callersFunctionwrapHandler
(fn handleFunc)
backend/http/middleware.go:520
↓ 9 callersMethodAll
()
backend/database/share/storage.go:17
↓ 9 callersFunctionCacheKey
(md5, previewSize string, percentage int)
backend/preview/preview.go:636
↓ 9 callersMethodDelete
(hash string)
backend/database/share/storage.go:25
↓ 9 callersMethodDelete
(ctx context.Context, key string)
backend/adapters/fs/diskcache/cache.go:10
↓ 9 callersMethodDenyGroup
DenyGroup adds a group to the deny list for a given source and index path.
backend/database/access/access.go:270
↓ 9 callersMethodGetByHash
(hash string)
backend/database/share/storage.go:19
↓ 9 callersMethodModTime
()
backend/indexing/getDirInfoCore_test.go:323
↓ 9 callersMethodName
()
backend/indexing/getDirInfoCore_test.go:320
↓ 9 callersMethodRemoveUserCascade
RemoveUserCascade removes a user from either the allow or deny list for a given path and all its subpaths. This is used for cascade delete operations
backend/database/access/access.go:1076
↓ 9 callersFunctionaskQuestion
askQuestion displays a prompt and reads a line of input from the user. It returns the defaultValue if the user's input is empty.
backend/cmd/cli.go:274
↓ 9 callersMethodclearProgressTimeout
(id)
frontend/src/utils/upload.js:506
↓ 9 callersMethodflushBatch
flushBatch writes all remaining batch items to the database (Scanner method) This is called at the end of a scan to flush any items that didn't reach
backend/indexing/mutate.go:78
↓ 9 callersFunctiongetNextPathPrefix
Helper functions getNextPathPrefix returns the lexicographically next string after the given prefix. This is used for efficient range queries on path
backend/database/sql/index.go:1276
↓ 9 callersFunctionloadConfigWithDefaults
(configFile string, generate bool)
backend/common/settings/config.go:821
↓ 9 callersFunctionnewLDAPEntry
newLDAPEntry creates a minimal *ldap.Entry for testing (DN and optional objectClass).
backend/http/ldap_test.go:10
↓ 9 callersFunctionwithAdmin
(fn handleFunc)
backend/http/middleware.go:614
↓ 8 callersMethodAddUserToGroup
AddUserToGroup adds a username to a group.
backend/database/access/access.go:552
↓ 8 callersFunctionIsMatchingType
(extension string, matchType string)
backend/indexing/iteminfo/conditions.go:383
↓ 8 callersMethodMode
()
backend/http/webdav.go:31
↓ 8 callersFunctionSetDefaults
(generate bool)
backend/common/settings/config.go:975
next →1–100 of 1,657, ranked by callers