Merge branch '11162-wes-support' refs #11162
[arvados.git] / sdk / R / R / CollectionTree.R
index fcc5dbece5727a35656700169130677af744158d..8686f88c1a8a3c55b695351b9993df55939d0f1a 100644 (file)
@@ -1,13 +1,11 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
 source("./R/Subcollection.R")
 source("./R/ArvadosFile.R")
 source("./R/util.R")
 
-#' Arvados Collection Object
-#'
-#' Update description
-#'
-#' @examples arv = Collection$new(api, uuid)
-#' @export CollectionTree
 CollectionTree <- R6::R6Class(
     "CollectionTree",
     public = list(
@@ -96,8 +94,8 @@ CollectionTree <- R6::R6Class(
             }
             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
+                # Note: REST always returns folder name alone before other folder 
+                # content, 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.