feat(workflow): import files from external storage

This commit is contained in:
Aaron Liu
2025-05-20 10:45:16 +08:00
parent 5d72faf688
commit a10a008ed7
32 changed files with 1071 additions and 609 deletions

View File

@@ -258,6 +258,7 @@ type (
ChunkSize int64
SentinelTaskID int
NewFileCreated bool // If new file is created for this session
Importing bool // If the upload is importing from another file
LockToken string // Token of the locked placeholder file
Props *UploadProps
@@ -377,6 +378,15 @@ type (
Size int64
OmitName bool // if true, file name will not be validated
}
PhysicalObject struct {
Name string `json:"name"`
Source string `json:"source"`
RelativePath string `json:"relative_path"`
Size int64 `json:"size"`
IsDir bool `json:"is_dir"`
LastModify time.Time `json:"last_modify"`
}
)
const (
@@ -599,7 +609,8 @@ type (
Offset int64
ProgressFunc `json:"-"`
read int64
ImportFrom *PhysicalObject `json:"-"`
read int64
}
)