arvadosFile <- collection$get("location/to/my/file.cpp")
```
- or
+or
```{r}
arvadosSubcollection <- collection$get("location/to/my/directory/")
size <- arvadosFile$getSizeInBytes()
```
- or
+or
```{r}
size <- arvadosSubcollection$getSizeInBytes()
collection$create(files)
```
- Example:
+Example:
```{r}
mainFile <- collection$create("cpp/src/main.cpp")
subcollection$remove("folderInsideSubcollection/")
```
-* Move file or folder inside collection:
+* Move or rename a file or folder within a collection (moving between collections is currently not supported):
-Directley from collection
+Directly from collection
```{r}
collection$move("folder/file.cpp", "file.cpp")
Make sure to include new file name in destination.
In second example file$move("newDestination/") will not work.
-* Copy file or folder inside collection:
+* Copy file or folder within a collection (copying between collections is currently not supported):
-Directley from collection
+Directly from collection
```{r}
collection$copy("folder/file.cpp", "file.cpp")