lib/stashify/directory/local.rb in stashify-1.0.3 vs lib/stashify/directory/local.rb in stashify-1.0.4

- old
+ new

@@ -41,15 +41,19 @@ @path == other.path end private - def directory?(name) - ::File.directory?(path_of(name)) + def file?(name) + ::File.exist?(path_of(name)) end def file(name) Stashify::File::Local.new(path_of(name)) + end + + def directory?(name) + ::File.directory?(path_of(name)) end def directory(name) Stashify::Directory::Local.new(path_of(name)) end