mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:15:07 +00:00
Implement sys$chdir() and teach sh+ls to cd around and browse different dirs.
This commit is contained in:
parent
ac738b03d6
commit
2749e7f1c2
16 changed files with 147 additions and 33 deletions
|
@ -128,6 +128,11 @@ ByteBuffer FileHandle::readEntireFile()
|
|||
return m_vnode->fileSystem()->readEntireInode(m_vnode->inode);
|
||||
}
|
||||
|
||||
bool FileHandle::isDirectory() const
|
||||
{
|
||||
return m_vnode->metadata().isDirectory();
|
||||
}
|
||||
|
||||
ssize_t FileHandle::get_dir_entries(byte* buffer, size_t size)
|
||||
{
|
||||
Locker locker(VirtualFileSystem::lock());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue