mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adds extra check to only consider regular files (e.g. not directories / device files) for inclusion.
This commit is contained in:
parent
d0854cb485
commit
b22d149e3c
@ -207,8 +207,13 @@ vector<boost::filesystem::path> LanguageServer::allSolidityFilesFromProject() co
|
||||
|
||||
auto directoryIterator = fs::recursive_directory_iterator(m_fileRepository.basePath(), fs::symlink_option::recurse);
|
||||
for (fs::directory_entry const& dirEntry: directoryIterator)
|
||||
if (dirEntry.path().extension() == ".sol")
|
||||
{
|
||||
if (
|
||||
dirEntry.status().type() == fs::file_type::regular_file &&
|
||||
dirEntry.path().extension() == ".sol"
|
||||
)
|
||||
collectedPaths.push_back(dirEntry.path());
|
||||
}
|
||||
|
||||
return collectedPaths;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user