about summary refs log tree commit diff stats
path: root/code/directory.rb
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-19 03:33:07 +0200
committerhut <hut@lavabit.com>2009-07-19 03:33:07 +0200
commitc71a21f62dc6d6b535bbfba62bfb015b4c0be32a (patch)
tree4fe79a3e67cd29c911bd0213d9ce6234021ef60e /code/directory.rb
parent87aab6c8509710740a99ac1279689cd0dd97118f (diff)
downloadranger-c71a21f62dc6d6b535bbfba62bfb015b4c0be32a.tar.gz
commit 632d6ae done right (refresh dirs when entering)
Diffstat (limited to 'code/directory.rb')
-rw-r--r--code/directory.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/code/directory.rb b/code/directory.rb
index d00a2eb6..870ecbb1 100644
--- a/code/directory.rb
+++ b/code/directory.rb
@@ -247,5 +247,9 @@ class Directory
 		@files_raw = files.map{|x| x.to_s}
 		@files = files
 	end
+
+	def changed?
+		File.mtime(@path) != @mtime
+	end
 end