diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2015-12-01 22:41:06 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2015-12-01 22:41:06 +0000 |
commit | 668b9871e64cb82ac30c8defb29d56d774f3c140 (patch) | |
tree | 9b4bba7cbcbd2660485cf803402c4d4889e62b10 /lib/ffi-xattr/extensions/pathname.rb | |
parent | 182a03798d49a3c0450b0f137977037cf9376e99 (diff) |
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.
Diffstat (limited to 'lib/ffi-xattr/extensions/pathname.rb')
-rw-r--r-- | lib/ffi-xattr/extensions/pathname.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/ffi-xattr/extensions/pathname.rb b/lib/ffi-xattr/extensions/pathname.rb new file mode 100644 index 0000000..c2ed11e --- /dev/null +++ b/lib/ffi-xattr/extensions/pathname.rb @@ -0,0 +1,9 @@ +require 'ffi-xattr/extensions/file' + +class Pathname + # Returns an Xattr object. + # See File.xattr. + def xattr + File.xattr(self) + end +end |