Sha256: 449fac82eba28dc863f95efbd95b85a3e4ac5bdb20ae78c62418a1987901338b

Contents?: true

Size: 299 Bytes

Versions: 5

Compression:

Stored size: 299 Bytes

Contents

require 'fspath'
require 'ffi-xattr'

class FSPath
  module Xattr
    # Xattr instance for path
    def xattr
      ::Xattr.new(@path)
    end

    # Xattr instance for path which doesn't follow symlinks
    def lxattr
      ::Xattr.new(@path, :no_follow => true)
    end
  end

  include Xattr
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fspath-xattr-1.0.4 lib/fspath/xattr.rb
fspath-xattr-1.0.3 lib/fspath/xattr.rb
fspath-xattr-1.0.2 lib/fspath/xattr.rb
fspath-xattr-1.0.1 lib/fspath/xattr.rb
fspath-xattr-1.0.0 lib/fspath/xattr.rb