I am writing a backup program (not necessarily in Ruby) and I need to
back up ALL of a file’s attributes.
For Windows:
R Read-only files
H Hidden files
A Files ready for archiving
S System files
I Not content indexed files
L Reparse Points
Long and short names
Owners
Alternate data streams (ugh)
Does anyone Out There know of code that will pick up all (did I miss
any?) of these attributes?
Is there Ruby code that serialize and deserialize all of the attributes?
On Tue, Oct 12, 2010 at 2:27 PM, Ralph S. [email protected]
wrote:
Is there Ruby code that serialize and deserialize all of the attributes?
Hm, maybe you can use xcacls command line utility to help with that.
You’ll find it somewhere on MS’s download pages. (But do not confuse
it with a VB program with the same / similar name.) HTH
Kind regards
robert
On Oct 12, 6:27am, Ralph S. [email protected] wrote:
L Reparse Points
Long and short names
Owners
Alternate data streams (ugh)
Does anyone Out There know of code that will pick up all (did I miss any?) of
these attributes?
Is there Ruby code that serialize and deserialize all of the attributes?
Take a look at win32-file and win32-file-stat. I’m not sure what an
“alternate data stream” is, though.
Regards,
Dan
On 10/12/2010 9:44 AM, Daniel B. wrote:
S System files
Is there Ruby code that serialize and deserialize all of the attributes?
Take a look at win32-file and win32-file-stat. I’m not sure what an
“alternate data stream” is, though.
The “alternate data streams” are basically filesystem “forks”:
In a computer file system, a fork is a set of data associated with a file-system object. File systems without forks only allow a single set of data for the contents, while file systems with forks allow multiple such contents. Every non-empty file must have at least one fork, often of default type, and depending on the file system, a file may have one or more other associated forks, which in turn may contain primary data integral to the file, or just metadata.
Unlike extended attributes, a simil...
-Jeremy