Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

Commit

Permalink
Fix latest crystal compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
faustinoaq committed Mar 18, 2018
1 parent 7059f2c commit a79df06
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/have_files.cr
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ module HaveFiles
def self.rm_r(path)
if Dir.exists?(path) && !File.symlink?(path)
Dir.open(path) do |dir|
dir.each do |entry|
if entry != "." && entry != ".."
src = File.join(path, entry)
rm_r(src)
end
dir.each_child do |entry|
src = File.join(path, entry)
rm_r(src)
end
end
Dir.rmdir(path)
Expand Down

0 comments on commit a79df06

Please sign in to comment.