Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/gtsteffaniak/filebrowser
/ functions
Functions
1,657 in github.com/gtsteffaniak/filebrowser
⨍
Functions
1,657
◇
Types & classes
228
↓ 235 callers
Method
Get
(id interface{})
backend/database/users/storage.go:23
↓ 166 callers
Method
Query
Query executes a query that returns rows. This is a convenience method that handles locking.
backend/database/sql/sqlite.go:400
↓ 113 callers
Method
Close
Close closes the database connection and removes the temporary file if it is not persistent.
backend/database/sql/sqlite.go:415
↓ 111 callers
Method
Set
(key string, value []byte)
backend/adapters/fs/diskcache/file_cache.go:21
↓ 97 callers
Method
Permitted
Permitted checks if a username is permitted for a given sourcePath and indexPath, recursively checking parent directories.
backend/database/access/access.go:317
↓ 78 callers
Function
emitStateChanged
()
frontend/src/store/eventBus.js:43
↓ 69 callers
Function
getApiPath
(path, params = {}, skipEncode = false, isPublic = false)
frontend/src/utils/url.js:93
↓ 64 callers
Method
Stat
(ctx context.Context, requestPath string)
backend/http/webdav.go:336
↓ 57 callers
Function
renderJSON
(w http.ResponseWriter, r *http.Request, data interface{}, statusCode ...int)
backend/http/middleware.go:813
↓ 45 callers
Method
Add
Add records a pinned item name under sourcePath and indexDirPath.
backend/database/users/pinned_items.go:6
↓ 45 callers
Method
Remove
Remove deletes a pinned item name and prunes empty map entries.
backend/database/users/pinned_items.go:21
↓ 44 callers
Function
createTestUser
(t *testing.T, userStore *users.Storage, username string)
backend/database/access/access_test.go:26
↓ 43 callers
Method
Save
(user *User, changePass bool, disableScopeChange bool)
backend/database/users/storage.go:26
↓ 43 callers
Function
boolPtr
boolPtr returns a pointer to a bool value
backend/common/settings/settings.go:11
↓ 40 callers
Method
Name
()
backend/http/webdav.go:29
↓ 38 callers
Function
withUser
(fn handleFunc)
backend/http/middleware.go:618
↓ 36 callers
Method
Open
Implement the Open method for dirFS, which wraps http.Dir
backend/adapters/fs/fileutils/assets.go:18
↓ 35 callers
Function
fetchURL
(url, opts, auth = true)
frontend/src/api/utils.js:5
↓ 32 callers
Method
InsertItem
(source, path string, info *iteminfo.FileInfo)
backend/database/sql/index.go:264
↓ 30 callers
Method
AllowUser
AllowUser adds a user to the allow list for a given source and index path.
backend/database/access/access.go:251
↓ 30 callers
Method
Scan
Scan implements the Scanner interface.
backend/preview/image_enum.go:99
↓ 28 callers
Function
createTestStorage
(t *testing.T)
backend/database/access/access_test.go:15
↓ 27 callers
Method
LoadFromDB
LoadFromDB loads all rules from the DB if DB is set.
backend/database/access/access.go:113
↓ 26 callers
Method
GetScopeForSourceName
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 callers
Method
MakeIndexPath
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 callers
Method
Write
(p []byte)
backend/http/download.go:71
↓ 25 callers
Method
IsDir
()
backend/http/webdav.go:33
↓ 24 callers
Method
SaveToDB
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 callers
Method
Update
(user *User, adminActor bool, fields ...string)
backend/database/users/storage.go:25
↓ 23 callers
Method
GetFrontendRules
GetRule retrieves a rule for a sourcePath and indexPath.
backend/database/access/access.go:452
↓ 23 callers
Method
GetRealPath
(relativePath ...string)
backend/indexing/indexingFiles.go:997
↓ 23 callers
Function
checkForNotification
(page: Page, message: string | RegExp)
frontend/tests/playwright/test-setup.ts:187
↓ 22 callers
Method
DenyUser
DenyUser adds a user to the deny list for a given source and index path.
backend/database/access/access.go:232
↓ 22 callers
Method
Exec
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 callers
Function
isBusyError
isBusyError checks if an error is SQLITE_BUSY (error code 5)
backend/database/sql/index.go:426
↓ 21 callers
Function
isTransactionError
isTransactionError checks if an error is related to nested transactions (error code 1)
backend/database/sql/index.go:436
↓ 19 callers
Method
withStatsLock
(fn func())
backend/indexing/indexingScanner.go:46
↓ 18 callers
Method
Get
()
backend/common/settings/storage.go:9
↓ 18 callers
Function
errToStatus
(err error)
backend/http/utils.go:11
↓ 18 callers
Function
sendOnlyOfficeLogEvent
(context *OnlyOfficeLogContext, level, component, message string)
backend/http/httpEvents.go:156
↓ 17 callers
Method
QueryRow
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 callers
Method
ShouldSkip
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 callers
Method
clearAllCaches
clearAllCaches clears ALL caches. This should be called whenever rules are created, updated, or deleted.
backend/database/access/access.go:180
↓ 17 callers
Function
newGrayJpeg
(t *testing.T, width, height int)
backend/preview/image_test.go:282
↓ 17 callers
Function
setupTestSources
()
backend/database/access/access_test.go:34
↓ 16 callers
Function
getPublicApiPath
(path, params = {}, skipEncode = false)
frontend/src/utils/url.js:143
↓ 16 callers
Function
sizeMatcher
(width, height int)
backend/preview/image_test.go:263
↓ 16 callers
Function
translate
(key: string)
frontend/src/router/index.ts:15
↓ 16 callers
Function
withHashFile
(fn handleFunc)
backend/http/middleware.go:610
↓ 15 callers
Method
GetReducedMetadata
GetMetadataInfo retrieves the FileInfo from the specified file or directory in the index.
backend/indexing/mutate.go:121
↓ 15 callers
Method
Seek
(offset int64, whence int)
backend/http/download.go:52
↓ 15 callers
Method
String
String implements the Stringer interface.
backend/preview/image_enum.go:53
↓ 15 callers
Function
cleanup
()
frontend/src/notify/events.js:22
↓ 15 callers
Method
findById
(id)
frontend/src/utils/upload.js:602
↓ 15 callers
Function
withRateLimitChain
withRateLimitChain applies a rate limit tier then fn for nesting inside withUser / withOrWithoutUser / withoutUser.
backend/http/auth_ratelimit.go:66
↓ 14 callers
Method
WriteHeader
WriteHeader captures the status code and ensures it's only written once
backend/http/middleware.go:694
↓ 14 callers
Function
fetchJSON
(url, opts)
frontend/src/api/utils.js:44
↓ 14 callers
Function
setupConditionalTestIndex
setupConditionalTestIndex creates a test index with conditional rules configured
backend/indexing/conditionalRules_test.go:12
↓ 13 callers
Method
Get
(key string)
backend/adapters/fs/diskcache/file_cache.go:20
↓ 13 callers
Method
GetBy
(interface{})
backend/database/users/storage.go:13
↓ 13 callers
Method
GetItem
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 callers
Method
GetMetadataInfo
raw directory info retrieval -- does not work on files, only returns a directory
backend/indexing/mutate.go:156
↓ 13 callers
Function
boolValueOrDefault
boolValueOrDefault returns the value of a bool pointer, or the default if nil
backend/common/settings/settings.go:16
↓ 13 callers
Function
getOnlyOfficeLogContext
(documentID string)
backend/http/httpEvents.go:144
↓ 13 callers
Function
returnOnlyOfficeError
returnOnlyOfficeError returns an error response to OnlyOffice server with proper status code
backend/http/onlyOffice.go:845
↓ 12 callers
Method
Delete
(ctx context.Context, key string)
backend/http/preview.go:26
↓ 12 callers
Function
IsHidden
(realPath string)
backend/indexing/indexingFiles.go:1239
↓ 12 callers
Function
RefreshIndex
(source string, path string, isDir bool, recursive bool)
backend/adapters/fs/files/files.go:625
↓ 12 callers
Function
createTestUser
(t *testing.T, backend users.StorageBackend, username string, isAdmin bool)
backend/database/storage/bolt/users_test.go:48
↓ 11 callers
Method
IsDir
()
backend/indexing/getDirInfoCore_test.go:324
↓ 11 callers
Method
Read
(p []byte)
backend/http/download.go:38
↓ 11 callers
Method
UpdateMetadata
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 callers
Function
adjustedData
(data)
frontend/src/api/utils.js:53
↓ 11 callers
Function
sortedItems
(items = [], sortby = "name", asc = true)
frontend/src/utils/sort.js:1
↓ 10 callers
Method
AllowGroup
AllowGroup adds a group to the allow list for a given source and index path.
backend/database/access/access.go:287
↓ 10 callers
Method
DeleteMetadata
DeleteMetadata removes the specified path from the index. SQLite handles locking automatically, so no mutex needed.
backend/indexing/mutate.go:103
↓ 10 callers
Method
GetAllRules
GetAllRules returns all access rules as a map.
backend/database/access/access.go:496
↓ 10 callers
Method
RemoveAll
(ctx context.Context, requestPath string)
backend/http/webdav.go:303
↓ 10 callers
Method
Size
()
backend/http/webdav.go:30
↓ 10 callers
Function
wrapHandler
(fn handleFunc)
backend/http/middleware.go:520
↓ 9 callers
Method
All
()
backend/database/share/storage.go:17
↓ 9 callers
Function
CacheKey
(md5, previewSize string, percentage int)
backend/preview/preview.go:636
↓ 9 callers
Method
Delete
(hash string)
backend/database/share/storage.go:25
↓ 9 callers
Method
Delete
(ctx context.Context, key string)
backend/adapters/fs/diskcache/cache.go:10
↓ 9 callers
Method
DenyGroup
DenyGroup adds a group to the deny list for a given source and index path.
backend/database/access/access.go:270
↓ 9 callers
Method
GetByHash
(hash string)
backend/database/share/storage.go:19
↓ 9 callers
Method
ModTime
()
backend/indexing/getDirInfoCore_test.go:323
↓ 9 callers
Method
Name
()
backend/indexing/getDirInfoCore_test.go:320
↓ 9 callers
Method
RemoveUserCascade
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 callers
Function
askQuestion
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 callers
Method
clearProgressTimeout
(id)
frontend/src/utils/upload.js:506
↓ 9 callers
Method
flushBatch
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 callers
Function
getNextPathPrefix
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 callers
Function
loadConfigWithDefaults
(configFile string, generate bool)
backend/common/settings/config.go:821
↓ 9 callers
Function
newLDAPEntry
newLDAPEntry creates a minimal *ldap.Entry for testing (DN and optional objectClass).
backend/http/ldap_test.go:10
↓ 9 callers
Function
withAdmin
(fn handleFunc)
backend/http/middleware.go:614
↓ 8 callers
Method
AddUserToGroup
AddUserToGroup adds a username to a group.
backend/database/access/access.go:552
↓ 8 callers
Function
IsMatchingType
(extension string, matchType string)
backend/indexing/iteminfo/conditions.go:383
↓ 8 callers
Method
Mode
()
backend/http/webdav.go:31
↓ 8 callers
Function
SetDefaults
(generate bool)
backend/common/settings/config.go:975
next →
1–100 of 1,657, ranked by callers