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

[airavata-mft] branch develop updated: getDirectoryResourceMetadata: Add file size to file metadata

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

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


The following commit(s) were added to refs/heads/develop by this push:
     new a15ed6a  getDirectoryResourceMetadata: Add file size to file metadata
a15ed6a is described below

commit a15ed6a03f94827d62dcc6d01001be2733e96540
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());
                     }