public static DirectoryEntry CreateDirectory(string aPath) { if (string.IsNullOrEmpty(aPath)) { throw new ArgumentNullException("aPath"); } FileSystemHelpers.Debug("VFSManager.CreateDirectory", "aPath = ", aPath); return(mVFS.CreateDirectory(aPath)); }
public static DirectoryEntry CreateDirectory(string aPath) { if (string.IsNullOrEmpty(aPath)) { throw new ArgumentNullException("aPath"); } Global.mFileSystemDebugger.SendInternal($"VFSManager.CreateDirectory : aPath = {aPath}"); return(mVFS.CreateDirectory(aPath)); }
/// <summary> /// Create directory. /// </summary> /// <param name="aPath">A path to the directory.</param> /// <returns>DirectoryEntry value.</returns> /// <exception cref="ArgumentNullException"> /// <list type="bullet"> /// <item>Thrown if aPath is null / empty / invalid.</item> /// <item>memory error.</item> /// </list> /// </exception> /// <exception cref="ArgumentOutOfRangeException">Thrown on memory error / unknown directory entry type.</exception> /// <exception cref="OverflowException">Thrown when data lenght is greater then Int32.MaxValue.</exception> /// <exception cref="Exception"> /// <list type="bullet"> /// <item>Thrown when data size invalid.</item> /// <item>invalid directory entry type.</item> /// <item>the entry at aPath is not a directory.</item> /// <item>memory error.</item> /// </list> /// </exception> /// <exception cref="ArgumentException"> /// <list type="bullet"> /// <item>Thrown if aPath length is zero.</item> /// <item>Thrown if aPath is invalid.</item> /// <item>memory error.</item> /// </list> /// </exception> /// <exception cref="DecoderFallbackException">Thrown on memory error.</exception> /// <exception cref="RankException">Thrown on fatal error (contact support).</exception> /// <exception cref="ArrayTypeMismatchException">Thrown on fatal error (contact support).</exception> /// <exception cref="InvalidCastException">Thrown on memory error.</exception> /// <exception cref="PathTooLongException">Thrown when The aPath is longer than the system defined maximum length.</exception> public static DirectoryEntry CreateDirectory(string aPath) { Global.mFileSystemDebugger.SendInternal("--- VFSManager.CreateDirectory ---"); if (string.IsNullOrEmpty(aPath)) { throw new ArgumentNullException(nameof(aPath)); } Global.mFileSystemDebugger.SendInternal("aPath ="); Global.mFileSystemDebugger.SendInternal(aPath); return(mVFS.CreateDirectory(aPath)); }
/// <summary> /// Create directory. /// </summary> /// <param name="aPath">A path to the directory.</param> /// <returns>DirectoryEntry value.</returns> /// <exception cref="ArgumentNullException"> /// <list type="bullet"> /// <item>Thrown if aPath is null / empty / invalid.</item> /// <item>memory error.</item> /// </list> /// </exception> /// <exception cref="ArgumentOutOfRangeException">Thrown on memory error / unknown directory entry type.</exception> /// <exception cref="OverflowException">Thrown when data lenght is greater then Int32.MaxValue.</exception> /// <exception cref="Exception"> /// <list type="bullet"> /// <item>Thrown when data size invalid.</item> /// <item>invalid directory entry type.</item> /// <item>the entry at aPath is not a directory.</item> /// <item>memory error.</item> /// </list> /// </exception> /// <exception cref="ArgumentException"> /// <list type="bullet"> /// <item>Thrown if aPath length is zero.</item> /// <item>Thrown if aPath is invalid.</item> /// <item>memory error.</item> /// </list> /// </exception> /// <exception cref="DecoderFallbackException">Thrown on memory error.</exception> /// <exception cref="RankException">Thrown on fatal error (contact support).</exception> /// <exception cref="ArrayTypeMismatchException">Thrown on fatal error (contact support).</exception> /// <exception cref="InvalidCastException">Thrown on memory error.</exception> /// <exception cref="PathTooLongException">Thrown when The aPath is longer than the system defined maximum length.</exception> public static DirectoryEntry CreateDirectory(string aPath) { Global.mFileSystemDebugger.SendInternal("-- VFSManager.CreateDirectory -- " + aPath); Global.mFileSystemDebugger.SendInternal("aPath = " + aPath); if (String.IsNullOrEmpty(aPath)) { throw new ArgumentNullException(nameof(aPath)); } ThrowIfNotRegistered(); var directoryEntry = mVFS.CreateDirectory(aPath); Global.mFileSystemDebugger.SendInternal("-- -------------------------- -- " + aPath); return(directoryEntry); }