Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vastsa/FileCodeBox
/ functions
Functions
368 in github.com/vastsa/FileCodeBox
⨍
Functions
368
◇
Types & classes
58
↳
Endpoints
57
Method
_read_chunk
同步读取分片
core/storage.py:758
Method
_save
(self, file, save_path)
core/storage.py:114
Method
_save
(self, file, save_path)
core/storage.py:627
Method
_save_chunk
同步保存分片到 OneDrive
core/storage.py:732
Function
_unlock_file
(file_obj: IO[str])
core/database.py:57
Method
_upload_merged
同步上传合并后的文件
core/storage.py:764
Method
acquire_token_pwd
(self)
core/storage.py:605
Function
admin_activities
( limit: int = 20, action: Optional[str] = None, targetType: Optional[str] = None, target_type
apps/admin/views.py:160
Function
admin_required
验证管理员权限
apps/admin/dependencies.py:108
Function
calculate_file_hash
(file: UploadFile, chunk_size=1024 * 1024)
apps/base/utils.py:116
Function
cancel_upload
取消上传并清理临时文件
apps/base/views.py:507
Method
clean_chunks
清理临时分片文件 :param upload_id: 上传会话ID :param save_path: 文件保存路径
core/storage.py:100
Method
clean_chunks
清理本地文件系统的临时分片文件 :param upload_id: 上传会话ID :param save_path: 文件保存路径
core/storage.py:230
Method
clean_chunks
清理 OneDrive 上的临时分片文件
core/storage.py:834
Method
clean_chunks
清理 OpenDAL 存储上的临时分片文件
core/storage.py:991
Method
clean_chunks
清理 WebDAV 上的临时分片文件 :param upload_id: 上传会话ID :param save_path: 文件保存路径
core/storage.py:1284
Function
complete_upload
( upload_id: str, data: CompleteUploadModel = Depends(parse_complete_upload), ip: str = Depends(ip
apps/base/views.py:559
Function
dashboard
(file_service: FileService = Depends(get_file_service))
apps/admin/views.py:88
Method
date_value
(value: Any)
apps/admin/services.py:1409
Method
delete_file
删除文件
core/storage.py:38
Method
delete_file
(self, file_code: FileCodes)
core/storage.py:133
Method
delete_file
(self, file_code: FileCodes)
core/storage.py:646
Method
delete_file
(self, file_code: FileCodes)
core/storage.py:883
Method
delete_file
删除WebDAV文件及空目录
core/storage.py:1119
Method
delete_file
(self, filename: str)
apps/admin/services.py:1578
Function
delete_local_file
( item: DeleteItem, local_file_service: LocalFileService = Depends(get_local_file_service), file_s
apps/admin/views.py:529
Function
download_file
(key: str, code: str, ip: str = Depends(ip_limit["error"]))
apps/base/views.py:306
Function
fake_refresh_settings
()
tests/test_admin_security.py:132
Function
file_batch_delete
( data: IDsData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:197
Function
file_batch_delete_post
( data: IDsData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:205
Function
file_batch_policy_action
( data: BatchFilePolicyActionData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:311
Function
file_batch_policy_action_post
( data: BatchFilePolicyActionData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:319
Function
file_batch_update
( data: BatchUpdateFileData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:244
Function
file_batch_update_post
( data: BatchUpdateFileData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:252
Function
file_delete
( data: IDData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:178
Function
file_detail
( id: int, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:362
Function
file_detail_post
( data: IDData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:371
Function
file_download
( id: int, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:502
Method
file_exists
检查文件是否存在 :param save_path: 文件路径 :return: 文件是否存在
core/storage.py:92
Method
file_exists
检查文件是否存在于本地文件系统 :param save_path: 文件路径 :return: 文件是否存在
core/storage.py:250
Method
file_exists
检查文件是否存在于OneDrive :param save_path: 文件路径 :return: 文件是否存在
core/storage.py:853
Method
file_exists
检查文件是否存在于OpenDAL存储 :param save_path: 文件路径 :return: 文件是否存在
core/storage.py:1000
Method
file_exists
检查文件是否存在于WebDAV :param save_path: 文件路径 :return: 文件是否存在
core/storage.py:1318
Function
file_list
( page: int = 1, size: int = 10, keyword: str = "", status: str = "", type: str = "",
apps/admin/views.py:327
Function
file_metadata
( data: FileMetadataData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:400
Function
file_metadata_post
( data: FileMetadataData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:408
Function
file_policy_action
( data: FilePolicyActionData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:276
Function
file_policy_action_post
( data: FilePolicyActionData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:284
Function
file_preview
( id: int, maxChars: int = 4000, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:511
Method
file_sender
流式读取文件内容
core/storage.py:1094
Method
file_storage
(self)
apps/admin/services.py:77
Function
file_view_presets
( file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:416
Function
file_view_presets_delete
( data: FileViewPresetDeleteData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:461
Function
file_view_presets_delete_post
( data: FileViewPresetDeleteData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:469
Function
file_view_presets_patch
( data: FileViewPresetData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:445
Function
file_view_presets_save
( data: FileViewPresetData, file_service: FileService = Depends(get_file_service), )
apps/admin/views.py:437
Method
filter
(cls, **kwargs)
tests/test_issue_473_retrieve_code.py:12
Method
first
(self)
tests/test_issue_473_retrieve_code.py:16
Method
generate_presigned_upload_url
生成预签名上传URL :param save_path: 文件保存路径 :param expires_in: URL过期时间(秒),默认15分钟 :return: 预签名URL,如果不支持直传则返回None
core/storage.py:83
Function
get_admin_session
(authorization: str = Header(default=None))
apps/admin/dependencies.py:93
Function
get_code_file
(code: str, ip: str = Depends(ip_limit["error"]))
apps/base/views.py:280
Function
get_config
()
main.py:858
Function
get_config
( config_service: ConfigService = Depends(get_config_service), )
apps/admin/views.py:477
Function
get_config_service
()
apps/admin/dependencies.py:144
Function
get_file_metadata
(code: str, ip: str = Depends(ip_limit["error"]))
apps/base/views.py:258
Method
get_file_response
获取文件响应 如果服务不支持直接访问文件,则需要实现该方法,返回文件响应 其余情况,可以不实现该方法
core/storage.py:53
Method
get_file_response
(self, file_code: FileCodes)
core/storage.py:141
Method
get_file_response
(self, file_code: FileCodes)
core/storage.py:668
Method
get_file_response
(self, file_code: FileCodes)
core/storage.py:889
Method
get_file_response
获取文件响应(代理模式)
core/storage.py:1144
Function
get_file_service
()
apps/admin/dependencies.py:140
Method
get_file_url
获取文件分享的url 如果服务不支持直接访问文件,可以通过服务器中转下载。 此时,此方法可以调用 utils.py 中的 `get_file_url` 方法,获取服务器中转下载的url
core/storage.py:44
Method
get_file_url
(self, file_code: FileCodes)
core/storage.py:138
Method
get_file_url
(self, file_code: FileCodes)
core/storage.py:722
Method
get_file_url
(self, file_code: FileCodes)
core/storage.py:886
Method
get_file_url
(self, file_code: FileCodes)
core/storage.py:1141
Function
get_local_file_service
()
apps/admin/dependencies.py:148
Function
get_local_lists
( local_file_service: LocalFileService = Depends(get_local_file_service), )
apps/admin/views.py:521
Function
get_public_config
()
main.py:863
Function
get_upload_status
获取上传状态
apps/base/views.py:532
Function
health_check
()
main.py:873
Function
init_chunk_upload
(data: InitChunkUploadModel = Depends(parse_init_chunk_upload))
apps/base/views.py:349
Method
is_expired
检查会话是否已过期
apps/base/models.py:82
Method
is_expired
(self)
tests/test_issue_464_admin_file_list.py:35
Function
lifespan
(app: FastAPI)
main.py:689
Method
list_files
(self)
apps/admin/services.py:1565
Function
login
(data: LoginData)
apps/admin/views.py:52
Function
logout_admin
()
apps/admin/views.py:66
Method
merge_chunks
合并分片文件并返回文件路径和完整哈希值 :param upload_id: 上传会话ID :param chunk_info: 分片信息 :param save_path: 文件保存路径 :return: (文件路径,
core/storage.py:73
Method
merge_chunks
合并本地文件系统的分片文件并返回文件路径和完整哈希值 :param upload_id: 上传会话ID :param chunk_info: 分片信息 :param save_path: 文件保存路径 :return:
core/storage.py:190
Method
merge_chunks
合并 OneDrive 上的分片文件,使用临时文件避免内存问题
core/storage.py:784
Method
merge_chunks
合并 OpenDAL 存储上的分片文件,使用临时文件避免内存问题
core/storage.py:950
Method
merge_chunks
合并 WebDAV 上的分片文件 使用临时文件避免内存问题
core/storage.py:1215
Function
migrate
()
apps/base/migrations/migrations_004.py:13
Function
migrate
()
apps/base/migrations/migrations_001.py:50
Function
migrate
()
apps/base/migrations/migrations_003.py:25
Function
migrate
()
apps/base/migrations/migrations_002.py:27
Function
migrate
()
apps/base/migrations/migrations_005.py:13
Method
model_post_init
(self, __context)
core/response.py:18
Function
parse_complete_upload
(request: Request)
apps/base/views.py:344
← previous
next →
201–300 of 368, ranked by callers