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

- old
+ new

@@ -12,13 +12,11 @@ @path = path super(name: ::File.basename(path)) end def write_directory(directory) - path = path_of(directory.name) - FileUtils.mkdir(path) - subdir = Stashify::Directory::Local.new(path) - directory.files.each { |file| subdir.write(file) } + FileUtils.mkdir(path_of(directory.name)) + super end def write_file(file) ::File.write(path_of(file.name), file.contents) end