Ejemplo n.º 1
0
        /// <summary>
        /// Creates the path information container
        /// </summary>
        /// <param name="fullpath">Full path to the file or directory (regular or unc)</param>
        /// <param name="win32FindData">Win32 handle information</param>
        internal QuickIOPathInfo(string fullpath, Win32FindData win32FindData)
        {
            Contract.Requires(fullpath != null);
            //Changed to allow paths which do not exist:
            //Contract.Requires( win32FindData != null );

            this.FindData = win32FindData;


            this.Name        = QuickIOPath.GetName(fullpath);
            this.FullName    = QuickIOPath.ToPathRegular(fullpath);
            this.FullNameUnc = QuickIOPath.ToPathUnc(fullpath);

            // TODO:
            this.Parent = QuickIOPath.GetDirectoryName(fullpath);
            this.Root   = QuickIOPath.GetPathRoot(fullpath);

            this.IsRoot = QuickIOPath.IsRoot(fullpath);
        }