mirror of
https://github.com/RGBCube/serenity
synced 2025-07-05 15:07:34 +00:00
LibCore: Add DirIterator::next_full_path()
This commit is contained in:
parent
e90765e957
commit
42399167b3
2 changed files with 9 additions and 1 deletions
|
@ -30,7 +30,8 @@
|
|||
namespace Core {
|
||||
|
||||
DirIterator::DirIterator(const StringView& path, Flags flags)
|
||||
: m_flags(flags)
|
||||
: m_path(path)
|
||||
, m_flags(flags)
|
||||
{
|
||||
m_dir = opendir(String(path).characters());
|
||||
if (!m_dir) {
|
||||
|
@ -92,4 +93,9 @@ String DirIterator::next_path()
|
|||
return tmp;
|
||||
}
|
||||
|
||||
String DirIterator::next_full_path()
|
||||
{
|
||||
return String::format("%s/%s", m_path.characters(), next_path().characters());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue