Method: Rex::Post::File#initialize

Defined in:
lib/rex/post/file.rb

#initialize(name, mode = 'r', perm = 0) ⇒ Object

f = File.new(“testfile”, “r”) f = File.new(“newfile”, “w+”) f = File.new(“newfile”, File::CREAT|File::TRUNC|File::RDWR, 0644) !!! I suppose I should figure out the correct default for perm..



30
31
# File 'lib/rex/post/file.rb', line 30

def initialize(name, mode='r', perm=0)
end