Browse Source

[cli] Fixed directory check that was throwing exceptions in Mono.

pull/914/head
Joao Matos 9 years ago
parent
commit
926fb78f23
  1. 4
      src/CLI/CLI.cs

4
src/CLI/CLI.cs

@ -132,9 +132,7 @@ namespace CppSharp @@ -132,9 +132,7 @@ namespace CppSharp
try
{
bool searchQuery = args.IndexOf('*') >= 0 || args.IndexOf('?') >= 0;
bool isDirectory = searchQuery || (File.GetAttributes(args) & FileAttributes.Directory) == FileAttributes.Directory;
if (isDirectory)
if (searchQuery || Directory.Exists(args))
GetFilesFromPath(args, messages);
else if (File.Exists(args))
options.HeaderFiles.Add(args);

Loading…
Cancel
Save