Arvados-DCO-1.1-Signed-off-by: Fuad Muhic <fmuhic@capeannenterprises.com>
elementToMove$move(newLocation)
},
- getFileListing = function() private$REST$getCollectionContent(self$uuid),
+ getFileListing = function()
+ {
+ content <- private$REST$getCollectionContent(self$uuid)
+ content[order(tolower(content))]
+ },
get = function(relativePath)
{
}
else
{
+ # Note: REST always returns folder name alone before other folder content
+ # (for some reason), so in first iteration we don't know if it's a file
+ # or folder since its just a name, so we assume it's a file.
+ # If we encounter that same name again we know
+ # it's a folder so we need to replace ArvadosFile with Subcollection.
if("ArvadosFile" %in% class(child))
{
child = private$replaceFileWithSubcollection(child)
content <- c(content, child$getName())
}
- content
+ content[order(tolower(content))]
},
getSizeInBytes = function()