getDirectory method

  1. @override
DirectoryInfoBase? getDirectory(
  1. String name
)
override

Returns an instance of DirectoryInfoBase that represents a subdirectory

Implementation

@override
DirectoryInfoBase? getDirectory(String name) {
  var isParentPath = name == '..';

  if (isParentPath) {
    return DirectoryInfoWrapper(
      _directoryInfo.fileSystem.directory(p.join(fullName, name)),
    );
  }
  return null;
}