mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Test: list folder & filesystem/path & model/folder/list
This commit is contained in:
@@ -35,7 +35,7 @@ func GetFileByPathAndName(path string, name string, uid uint) (File, error) {
|
||||
return file, result.Error
|
||||
}
|
||||
|
||||
// GetChildFile 查找目录下子文件 TODO:test
|
||||
// GetChildFile 查找目录下子文件
|
||||
func (folder *Folder) GetChildFile() ([]File, error) {
|
||||
var files []File
|
||||
result := DB.Where("folder_id = ?", folder.ID).Find(&files)
|
||||
|
||||
Reference in New Issue
Block a user