Exemple #1
0
        /// <summary>
        /// Creates a directory at the specified path.
        /// </summary>
        /// <param name="path">The path of the directory to create.</param>
        public override void CreateDirectory(string path)
        {
            try
            {
                Nfs3FileHandle parent = GetParentDirectory(path);

                Nfs3SetAttributes setAttrs = new Nfs3SetAttributes();
                setAttrs.Mode    = NfsOptions.NewDirectoryPermissions;
                setAttrs.SetMode = true;

                _client.MakeDirectory(parent, Utilities.GetFileFromPath(path), setAttrs);
            }
            catch (Nfs3Exception ne)
            {
                throw ConvertNfsException(ne);
            }
        }