FileStore.FileStore.GetFolderFiles C# (CSharp) Method

GetFolderFiles() public method

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

            StoreFolder folder = GetFolder(path);

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

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

                return files;
            }

            return null;
        }