mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Make path separator cross-platform in few places (#628)
* make path separator cross-platform in few places * reuse path separator definer
This commit is contained in:
parent
16e5433981
commit
f06d5cb053
2 changed files with 2 additions and 2 deletions
|
@ -906,7 +906,7 @@ void ArchiveManager::start_up() {
|
|||
td::WalkPath::run(db_root_ + "/archive/states/", [&](td::CSlice fname, td::WalkPath::Type t) -> void {
|
||||
if (t == td::WalkPath::Type::NotDir) {
|
||||
LOG(ERROR) << "checking file " << fname;
|
||||
auto pos = fname.rfind('/');
|
||||
auto pos = fname.rfind(TD_DIR_SLASH);
|
||||
if (pos != td::Slice::npos) {
|
||||
fname.remove_prefix(pos + 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue