mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-29 23:00:03 +03:00
This commit is contained in:
parent
42923725cb
commit
fbd88477b8
1 changed files with 4 additions and 2 deletions
|
@ -278,11 +278,13 @@ int run(string[] args)
|
||||||
string[] expandArgs(string[] args)
|
string[] expandArgs(string[] args)
|
||||||
{
|
{
|
||||||
// isFile can throw if it's a broken symlink.
|
// isFile can throw if it's a broken symlink.
|
||||||
bool isFileSafe(T)(T a){
|
bool isFileSafe(T)(T a)
|
||||||
|
{
|
||||||
try{
|
try{
|
||||||
return isFile(a);
|
return isFile(a);
|
||||||
}
|
}
|
||||||
catch{
|
catch(FileException)
|
||||||
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue