Options[getCloudObjectPath] =
{
"Username" -> None
};
getCloudObjectPath[path_String, ops : OptionsPattern[]] :=
URLBuild@Flatten@{
Replace[OptionValue["Username"],
{
s_String?(StringLength[#] > 0 &) :>
"user:" <> StringSplit[s, "@"][[1]],
_ -> ""
}
],
URLParse[path, "Path"]
};
Options[getCloudObjectDS] =
Options[getCloudObjectPath];
getCloudObjectDS[cpath_String, ops : OptionsPattern[]] :=
Quiet@Check[CloudObjects[cpath], $Failed] //