mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
Move readEntireInode() up to FileSystem (from ext2.)
It's just a wrapper around multiple calls to readInodeBytes() now.
This commit is contained in:
parent
0286b5ea48
commit
9528edab92
Notes:
sideshowbarker
2024-07-19 18:48:03 +09:00
Author: https://github.com/awesomekling
Commit: 9528edab92
9 changed files with 39 additions and 52 deletions
|
@ -285,7 +285,7 @@ void VirtualFileSystem::listDirectory(const String& path)
|
|||
if (metadata.isDirectory()) {
|
||||
printf("/");
|
||||
} else if (metadata.isSymbolicLink()) {
|
||||
auto symlinkContents = directoryInode.fileSystem()->readInode(metadata.inode);
|
||||
auto symlinkContents = directoryInode.fileSystem()->readEntireInode(metadata.inode);
|
||||
printf(" -> %s", String((const char*)symlinkContents.pointer(), symlinkContents.size()).characters());
|
||||
}
|
||||
printf("\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue