Created
August 17, 2015 13:35
-
-
Save mipmip/a57270eb9d5c0711dc80 to your computer and use it in GitHub Desktop.
check all maildir subdir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dir = "/var/customers/mail/wimsnel/aan@wimsnel.nl" | |
#p Dir.glob(dir) | |
dirs =Dir.entries(dir).select {|entry| | |
File.directory? File.join(dir,entry) and !(entry =='.' || entry == '..') | |
} | |
dirs.each do |d| | |
p dir + ':' + d | |
#p d | |
sd =Dir.entries(File.join(dir,d)).select {|entry| | |
File.directory? File.join(dir,entry) and !(entry =='.' || entry == '..') | |
} | |
p sd | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment