Skip to content

Commit

Permalink
fixed filtering for files with no extension, file retrieval still not…
Browse files Browse the repository at this point in the history
… working for recursive method calls
  • Loading branch information
cthulhu-bot committed May 13, 2013
1 parent 030d6a0 commit 4802c67
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 2 deletions.
Binary file modified bin/Debug/ECSSS_Documenter.exe
Binary file not shown.
Binary file modified bin/Debug/ECSSS_Documenter.pdb
Binary file not shown.
Binary file modified bin/Release/ECSSS_Documenter.exe
Binary file not shown.
Binary file modified bin/Release/ECSSS_Documenter.pdb
Binary file not shown.
Binary file modified obj/x86/Debug/ECSSS_Documenter.exe
Binary file not shown.
Binary file modified obj/x86/Debug/ECSSS_Documenter.pdb
Binary file not shown.
Binary file modified obj/x86/Release/ECSSS_Documenter.exe
Binary file not shown.
Binary file modified obj/x86/Release/ECSSS_Documenter.pdb
Binary file not shown.
6 changes: 4 additions & 2 deletions src/documenter.cs
Expand Up @@ -105,7 +105,8 @@ public List<string> getRootPathFiles()
{
List<string> files = Directory.GetFiles(root).ToList();
//Remove all files not containing the targeted extensions
files.RemoveAll(r => !targetExtensions.Any(r.Substring(r.LastIndexOf('.'), r.Length - r.LastIndexOf('.')).Contains)
files.RemoveAll(r => !r.Contains('.')
|| !targetExtensions.Any(r.Substring(r.LastIndexOf('.'), r.Length - r.LastIndexOf('.')).Contains)
|| r.Substring(r.LastIndexOf('.'), r.Length - r.LastIndexOf('.')).Contains(".css"));
return files;
}
Expand All @@ -120,7 +121,8 @@ public List<string> getCurrentPathFiles(string path)
{
List<string> files = Directory.GetFiles(path).ToList();
//Remove all files not containing the targeted extensions
files.RemoveAll(r => !targetExtensions.Any(r.Substring(r.LastIndexOf('.'), r.Length - r.LastIndexOf('.')).Contains)
files.RemoveAll(r => !r.Contains('.')
|| !targetExtensions.Any(r.Substring(r.LastIndexOf('.'), r.Length - r.LastIndexOf('.')).Contains)
|| r.Substring(r.LastIndexOf('.'), r.Length - r.LastIndexOf('.')).Contains(".css"));
return files;
}
Expand Down

0 comments on commit 4802c67

Please sign in to comment.