pcloud: Create the path to a file in the p-Cloud drive

View source: R/pcloud.R

pcloudR Documentation

Create the path to a file in the p-Cloud drive

Description

Similar to file.path() but creates a path to a file located somewhere in a p-Cloud drive. p-Cloud is a cloud storage system that comes with an application for Windows, MacOS or Linux. It creates a virtual drive on the PC where files can be managed as if they were local. However, the path to these files differ between OSes. This function abstracts out the first part of the path for you. So, you just have to provide the folders and files and it constructs a valid absolute path, no matter which OS you are using. The pcloud_crypto() function does the same for the special ⁠Crypo Folder⁠ that p-Cloud creates if you subscribe to the encryption option.

Usage

pcloud(...)

pcloud_crypto(...)

Arguments

...

The folder, subfolder and file to form the path, starting to the root of the p-Cloud drive, or the ⁠Crypto Folder⁠.

Value

A character string with the absolute path to the file or folder.

See Also

system_file(), source_clipboard(), file.path()

Examples

## Not run: 
pcloud("subfolder", "file.txt")
# Only valid with the encryption option and the Crypto Folder is unlocked
pcloud_crypto("subfolder1", "subfolder2", "crypted_file.txt")

## End(Not run)

SciViews/svMisc documentation built on Sept. 15, 2023, 3:51 a.m.