Beispiel #1
0
        public static DirectoryEntry CreateFile(string aPath)
        {
            if (string.IsNullOrEmpty(aPath))
            {
                throw new ArgumentNullException("aPath");
            }

            FileSystemHelpers.Debug("VFSManager.CreateFile", "aPath = ", aPath);

            return(mVFS.CreateFile(aPath));
        }
Beispiel #2
0
        public static DirectoryEntry CreateFile(string aPath)
        {
            if (string.IsNullOrEmpty(aPath))
            {
                throw new ArgumentNullException("aPath");
            }

            Global.mFileSystemDebugger.SendInternal($"VFSManager.CreateFile : aPath = {aPath}");

            return(mVFS.CreateFile(aPath));
        }
Beispiel #3
0
        /// <summary>
        /// Create a file.
        /// </summary>
        /// <param name="aPath">A path to the file.</param>
        /// <returns>DirectoryEntry value.</returns>
        /// <exception cref="ArgumentNullException">Thrown if aPath is null.</exception>
        /// <exception cref="ArgumentException">Thrown if aPath is empty or contains invalid chars.</exception>
        /// <exception cref="Exception">
        /// <list type="bullet">
        /// <item>Thrown when the entry at aPath is not a file.</item>
        /// <item>Thrown when the parent directory of aPath is not a directory.</item>
        /// </list>
        /// </exception>
        /// <exception cref="PathTooLongException">Thrown when aPath is longer than the system defined max lenght.</exception>
        public static DirectoryEntry CreateFile(string aPath)
        {
            Global.mFileSystemDebugger.SendInternal("--- VFSManager.CreateFile ---");

            if (string.IsNullOrEmpty(aPath))
            {
                throw new ArgumentNullException(nameof(aPath));
            }
            ThrowIfNotRegistered();
            Global.mFileSystemDebugger.SendInternal("aPath =" + aPath);

            return(mVFS.CreateFile(aPath));
        }