mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-08 04:30:46 -06:00
[client] pass in dir to CreateResourceChange
This commit is contained in:
@@ -28,6 +28,7 @@ class ResourceMkdirAction extends ResourceCreateAction with JsonApiAction {
|
||||
objectId: resourceId,
|
||||
parent: parent,
|
||||
localName: localName,
|
||||
dir: true,
|
||||
timestamp: timestamp,
|
||||
contentLength: 0,
|
||||
contentType: '',
|
||||
|
||||
@@ -44,6 +44,7 @@ class ResourceUploadAction extends ResourceCreateAction with FileUploadApiAction
|
||||
objectId: resourceId,
|
||||
parent: parent,
|
||||
localName: localName,
|
||||
dir: false,
|
||||
timestamp: timestamp,
|
||||
contentLength: size,
|
||||
contentType: contentType,
|
||||
|
||||
@@ -6,6 +6,7 @@ class CreateResourceChange extends LocalChange<Resource> {
|
||||
final String objectId;
|
||||
final String parent;
|
||||
final String localName;
|
||||
final bool dir;
|
||||
final DateTime timestamp;
|
||||
final int contentLength;
|
||||
final String contentType;
|
||||
@@ -21,6 +22,7 @@ class CreateResourceChange extends LocalChange<Resource> {
|
||||
required this.objectId,
|
||||
required this.parent,
|
||||
required this.localName,
|
||||
required this.dir,
|
||||
required this.timestamp,
|
||||
required this.contentLength,
|
||||
required this.contentType,
|
||||
@@ -33,7 +35,7 @@ class CreateResourceChange extends LocalChange<Resource> {
|
||||
id: objectId,
|
||||
parent: parent,
|
||||
name: localName,
|
||||
dir: true,
|
||||
dir: dir,
|
||||
created: timestamp,
|
||||
modified: timestamp,
|
||||
contentLength: contentLength,
|
||||
|
||||
Reference in New Issue
Block a user