From 668b9871e64cb82ac30c8defb29d56d774f3c140 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Tue, 1 Dec 2015 22:41:06 +0000 Subject: Completely re-vamped restore command. Fixes #12403 The byteback-restore command now uses the rsync xattrs to display information about the files due to be restored. It can handle filenames with spaces (!) and other characters. --- lib/ffi-xattr/extensions/file.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/ffi-xattr/extensions/file.rb (limited to 'lib/ffi-xattr/extensions/file.rb') diff --git a/lib/ffi-xattr/extensions/file.rb b/lib/ffi-xattr/extensions/file.rb new file mode 100644 index 0000000..200f024 --- /dev/null +++ b/lib/ffi-xattr/extensions/file.rb @@ -0,0 +1,9 @@ +require 'ffi-xattr' + +class File + + # Returns an Xattr object for the named file (see Xattr). + def self.xattr(file_name) + Xattr.new(file_name) + end +end -- cgit v1.2.3