Class: Archive::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/libarchive_rs.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) copy_stat(path)

Populates an Entry by doing a stat on given path and copying all attributes.



75
76
77
78
# File 'lib/libarchive_rs.rb', line 75

def copy_stat(path)
  copy_stat_helper(path)
  self.set_symlink(File.readlink(path)) if self.symbolic_link?
end