lib/stashify/directory/local.rb in stashify-3.0.0 vs lib/stashify/directory/local.rb in stashify-3.1.0

- old
+ new

@@ -9,19 +9,21 @@ def write_directory(directory) FileUtils.mkdir(path_of(directory.name)) super end + def parent + Stashify::Directory::Local.new(path: ::File.dirname(path)) + end + + def exists?(name) + ::File.exist?(path_of(name)) + end + def files Dir.entries(path).grep_v(/^[.][.]?$/).map do |file_name| find(::File.basename(file_name)) end - end - - private - - def file?(name) - ::File.exist?(path_of(name)) end def file(name) Stashify::File::Local.new(path: path_of(name)) end