Skip to content

Commit 8f4d3db

Browse files
committed
feat(UploadFile): Expose if the upload is photo sync or not
1 parent b5121ce commit 8f4d3db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kDriveCore/Data/Models/Upload/UploadFile.swift

+4
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ public final class UploadFile: Object, UploadFilable {
137137
public var formattedSize: String {
138138
return Constants.formatFileSize(size)
139139
}
140+
141+
public var isPhotoSyncUpload: Bool {
142+
return assetLocalIdentifier != nil
143+
}
140144

141145
var type: UploadFileType {
142146
return UploadFileType(rawValue: rawType) ?? .unknown

0 commit comments

Comments
 (0)