feat(workflow): import files from external storage
This commit is contained in:
@@ -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
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user