Exemple #1
0
        /// <summary>
        /// This method returns the total number of files in the given path.
        /// </summary>
        /// <param name="path">directory path</param>
        /// <returns>Total number of files.</returns>
        public static int GetTotalFiles(string path)
        {
            FilesCollection collection = new FilesCollection(path);

            return(collection.TotalFiles);
        }
Exemple #2
0
        /// <summary>
        /// This method return IEnumerable for all files in the given path
        /// </summary>
        /// <param name="path">directory path</param>
        /// <returns>IEnumerable</returns>
        public static IEnumerable GetFiles(string path)
        {
            FilesCollection collection = new FilesCollection(path);

            return(collection);
        }