mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-29 14:50:01 +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)
|
||||
{
|
||||
// isFile can throw if it's a broken symlink.
|
||||
bool isFileSafe(T)(T a){
|
||||
bool isFileSafe(T)(T a)
|
||||
{
|
||||
try{
|
||||
return isFile(a);
|
||||
}
|
||||
catch{
|
||||
catch(FileException)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue