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:23 UTC

[airavata-mft] branch getDirectoryResourceMetadata-filesize created (now b3e9d59)

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

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


      at b3e9d59  getDirectoryResourceMetadata: Add file size to file metadata

This branch includes the following new commits:

     new b3e9d59  getDirectoryResourceMetadata: Add file size to file metadata

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


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

Posted by ma...@apache.org.
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());
                     }