mirror of
https://github.com/kwsch/pkNX.git
synced 2026-10-03 14:50:39 -05:00
Add more utility functions to VFS
This commit is contained in:
@@ -56,24 +56,24 @@ protected MountPoint GetMountPoint(FileSystemPath path)
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public IEnumerable<FileSystemPath> GetEntityPaths(FileSystemPath path)
|
||||
public IEnumerable<FileSystemPath> GetEntityPaths(FileSystemPath path, Func<FileSystemPath, bool>? filter = null)
|
||||
{
|
||||
var mount = GetMountPoint(path);
|
||||
return mount.FileSystem.GetEntityPaths(path);
|
||||
return mount.FileSystem.GetEntityPaths(path, filter);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public IEnumerable<FileSystemPath> GetDirectoryPaths(FileSystemPath path)
|
||||
public IEnumerable<FileSystemPath> GetDirectoryPaths(FileSystemPath path, Func<FileSystemPath, bool>? filter = null)
|
||||
{
|
||||
var mount = GetMountPoint(path);
|
||||
return mount.FileSystem.GetDirectoryPaths(path);
|
||||
return mount.FileSystem.GetDirectoryPaths(path, filter);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public IEnumerable<FileSystemPath> GetFilePaths(FileSystemPath path)
|
||||
public IEnumerable<FileSystemPath> GetFilePaths(FileSystemPath path, Func<FileSystemPath, bool>? filter = null)
|
||||
{
|
||||
var mount = GetMountPoint(path);
|
||||
return mount.FileSystem.GetFilePaths(path);
|
||||
return mount.FileSystem.GetFilePaths(path, filter);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
|
||||
Reference in New Issue
Block a user