vfs: Implement GetName() & GetPath() in FileNode class

This commit is contained in:
EnderIce2
2024-10-13 02:25:29 +03:00
parent 74faef2623
commit 3ca2463834
3 changed files with 37 additions and 5 deletions

View File

@ -48,6 +48,9 @@ public:
Inode *Node;
FileSystemInfo *fsi;
std::string GetName();
std::string GetPath();
bool IsDirectory() { return S_ISDIR(Node->Mode); }
bool IsCharacterDevice() { return S_ISCHR(Node->Mode); }
bool IsBlockDevice() { return S_ISBLK(Node->Mode); }