You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/04/14 21:55:24 UTC

[airavata-mft] 01/01: getDirectoryResourceMetadata: Add file size to file metadata

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch getDirectoryResourceMetadata-filesize
in repository https://gitbox.apache.org/repos/asf/airavata-mft.git

commit b3e9d594aae29a8536a8af6e254c7388c3fdfd15
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Wed Apr 14 17:55:10 2021 -0400

    getDirectoryResourceMetadata: Add file size to file metadata
---
 .../org/apache/airavata/mft/transport/scp/SCPMetadataCollector.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPMetadataCollector.java b/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPMetadataCollector.java
index fa39645..35ad63b 100644
--- a/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPMetadataCollector.java
+++ b/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPMetadataCollector.java
@@ -174,7 +174,8 @@ public class SCPMetadataCollector implements MetadataCollector {
                                         .withFriendlyName(rri.getName())
                                         .withResourcePath(rri.getPath())
                                         .withCreatedTime(rri.getAttributes().getAtime())
-                                        .withUpdateTime(rri.getAttributes().getMtime());
+                                        .withUpdateTime(rri.getAttributes().getMtime())
+                                        .withResourceSize(rri.getAttributes().getSize());
 
                         dirMetadataBuilder = dirMetadataBuilder.withFile(childFileBuilder.build());
                     }