From eb564092c71c7a3578b13bc40321ee1fc8bacf21 Mon Sep 17 00:00:00 2001 From: "nweiz@google.com" <nweiz@google.com> Date: Tue, 4 Jun 2013 18:30:48 +0000 Subject: [PATCH] Allow DirectoryDescriptor.load to load a file next to a directory. This mkaes it easier to model servers using descriptors. R=rnystrom@google.com Review URL: https://codereview.chromium.org//15682008 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@23607 260f80e4-7a28-3924-810f-c04153c831b5 --- test/descriptor/tar.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/descriptor/tar.dart b/test/descriptor/tar.dart index 02eca7c7..0dd8b826 100644 --- a/test/descriptor/tar.dart +++ b/test/descriptor/tar.dart @@ -15,7 +15,8 @@ import '../../lib/src/io.dart'; import '../../lib/src/utils.dart'; /// Describes a tar file and its contents. -class TarFileDescriptor extends DirectoryDescriptor { +class TarFileDescriptor extends DirectoryDescriptor + implements ReadableDescriptor { TarFileDescriptor(String name, List<Descriptor> contents) : super(name, contents); -- GitLab