Esempio n. 1
0
        /// <summary>
        /// 创建一个新参数
        /// </summary>
        /// <returns></returns>
        public static TraverseEventArg Create(FolderFileInfo data)
        {
            var e = new TraverseEventArg();

            e.Data = data;
            return(e);
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="filePath"></param>
        /// <returns></returns>
        public FolderFileInfo GetFileInfo(string filePath)
        {
            FolderFileInfo item = new FolderFileInfo();

            if (StringChecker.IsPhysicalPath(filePath))
            {
                item = FolderFileInfo.GetInst(filePath);
            }

            return(item);
        }
Esempio n. 3
0
        /// <summary>
        ///  获取一个文件夹的基本信息
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public FolderFileInfo GetFolderInfo(string path)
        {
            var folderInfo = FolderFileInfo.GetInst(path);

            return(folderInfo);
        }