Skip to content

Commit

Permalink
Use directory_options instead of deprecated symlink_option
Browse files Browse the repository at this point in the history
basename to step
  • Loading branch information
nikola-matic committed Jan 12, 2023
1 parent d4f9383 commit 1da8204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libsolidity/lsp/LanguageServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
// 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)
if (
dirEntry.path().extension() == ".sol" &&
Expand Down
2 changes: 1 addition & 1 deletion solc/CommandLineInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ void CommandLineInterface::createFile(string const& _fileName, string const& _da

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)
Expand Down

0 comments on commit 1da8204

Please sign in to comment.