method
user_mask
v1_9_3_125 -
Show latest stable
- Class:
FileUtils
user_mask(target)public
No documentation available.
# File lib/fileutils.rb, line 867
def user_mask(target) #:nodoc:
mask = 0
target.each_byte do |byte_chr|
case byte_chr.chr
when "u"
mask |= 04700
when "g"
mask |= 02070
when "o"
mask |= 01007
when "a"
mask |= 07777
end
end
mask
end