FileStore.FileStore.GetFolderFilesEx C# (CSharp) Method

GetFolderFilesEx() public method

Gets a StoreFile array of the files in the given folder.
public GetFolderFilesEx ( string path ) : StoreFile[]
path string The folder path.
return StoreFile[]
        public StoreFile[] GetFolderFilesEx(string path)
        {
            if(path == null) {
                throw new ArgumentNullException("path");
            }

            StoreFolder folder = GetFolder(path);

            if(folder != null) {
                StoreFile[] files = new StoreFile[folder.Files.Count];

                for(int i = 0; i < folder.Files.Count; i++) {
                    files[i] = this.files[folder.Files.Values[i]];
                }

                return files;
            }

            return null;
        }