Skip to content

Commit

Permalink
reverted the change according to comment below:
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-ishitani committed Feb 8, 2020
1 parent b326d17 commit 976dbd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zip/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def get_entry(entry)
# Creates a directory
def mkdir(entryName, permissionInt = 0o755)
raise Errno::EEXIST, "File exists - #{entryName}" if find_entry(entryName)
entryName = +entryName.to_s
entryName = entryName.dup.to_s
entryName << '/' unless entryName.end_with?('/')
@entry_set << ::Zip::StreamableDirectory.new(@name, entryName, nil, permissionInt)
end
Expand Down

0 comments on commit 976dbd3

Please sign in to comment.