/// <summary> /// This method returns access ro a specific subfolder addressed via /// unix like file system path, e.g. /Public/SubFolder/SubSub /// /// Valid Exceptions are: /// SharpBoxException(nSharpBoxErrorCodes.ErrorInvalidFileOrDirectoryName); /// SharpBoxException(nSharpBoxErrorCodes.ErrorFileNotFound); /// </summary> /// <param name="path">The path to the target subfolder</param> /// <returns>Reference to the searched folder</returns> public ICloudDirectoryEntry GetFolder(String path) { var ph = new PathHelper(path); if (!ph.IsPathRooted()) throw new SharpBoxException(SharpBoxErrorCodes.ErrorInvalidFileOrDirectoryName); return GetFolder(path, null); }
public ICloudDirectoryEntry CreateFolder(string path) { var ph = new PathHelper(path); return ph.IsPathRooted() ? CreateFolderEx(path, GetRoot()) : null; }
/// <summary> /// This function allows to create full folder pathes in the cloud storage /// </summary> /// <param name="path"></param> /// <returns></returns> public ICloudDirectoryEntry CreateFolder(String path) { // get the path elemtens var ph = new PathHelper(path); // check parameter if (!ph.IsPathRooted()) return null; // start creation return CreateFolderEx(path, GetRoot()); }