mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use directory_options instead of deprecated symlink_option
basename to step
This commit is contained in:
parent
d4f9383185
commit
1da82045c4
@ -221,7 +221,7 @@ vector<boost::filesystem::path> LanguageServer::allSolidityFilesFromProject() co
|
|||||||
// We explicitly decided against including all files from include paths but leave the possibility
|
// We explicitly decided against including all files from include paths but leave the possibility
|
||||||
// open for a future PR to enable such a feature to be optionally enabled (default disabled).
|
// open for a future PR to enable such a feature to be optionally enabled (default disabled).
|
||||||
|
|
||||||
auto directoryIterator = fs::recursive_directory_iterator(m_fileRepository.basePath(), fs::symlink_option::recurse);
|
auto directoryIterator = fs::recursive_directory_iterator(m_fileRepository.basePath(), fs::directory_options::follow_directory_symlink);
|
||||||
for (fs::directory_entry const& dirEntry: directoryIterator)
|
for (fs::directory_entry const& dirEntry: directoryIterator)
|
||||||
if (
|
if (
|
||||||
dirEntry.path().extension() == ".sol" &&
|
dirEntry.path().extension() == ".sol" &&
|
||||||
|
@ -589,7 +589,7 @@ void CommandLineInterface::createFile(string const& _fileName, string const& _da
|
|||||||
|
|
||||||
void CommandLineInterface::createJson(string const& _fileName, string const& _json)
|
void CommandLineInterface::createJson(string const& _fileName, string const& _json)
|
||||||
{
|
{
|
||||||
createFile(boost::filesystem::basename(_fileName) + string(".json"), _json);
|
createFile(boost::filesystem::path(_fileName).stem().string() + string(".json"), _json);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CommandLineInterface::run(int _argc, char const* const* _argv)
|
bool CommandLineInterface::run(int _argc, char const* const* _argv)
|
||||||
|
Loading…
Reference in New Issue
Block a user