Updated copyright.
[ruby-eet.git] / lib / eet.rb
index 95e1e469dd21307d61447169ed92536b877059d6..483ac5543b6030ca137a956518fb884d00534fb4 100644 (file)
@@ -1,7 +1,5 @@
 #--
-# $Id: eet.rb 60 2005-06-08 16:18:32Z tilman $
-#
-# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
+# Copyright (c) 2005-2007 Tilman Sauerbeck (tilman at code-monkey de)
 #
 # Permission is hereby granted, free of charge, to any person obtaining
 # a copy of this software and associated documentation files (the
@@ -98,6 +96,15 @@ module Eet
 
        class ChunkError < EetError; end
 
+       class File
+               def list(glob = "*")
+                       warn "Eet::File#list is deprecated, " +
+                            "use Eet::File#entries or Eet::File#[] instead"
+
+                       self[glob]
+               end
+       end
+
        class Stream # :nodoc:
                def initialize(chunk = nil)
                        super(chunk.nil? ? 0 : 1, chunk)