Recursive Directory Scanner
8
Copies files from nested folders into one source, flat directory.
8
Is this file the same as that file? The files may or may not be binary. We could compare the modify dates, or the sizes. But, those are not very accurate to know if a file has really changed.
Introducing MD5 Checksum. We can feed the files into Digest::MD5 in binary mode.
This is a great way to do Incremental Backups.
This is also an easy way to verify checksums when downloading files from the internet which list their MD5 Checksums.
You'll need the Digest::MD5 Perl Module.
Introducing MD5 Checksum. We can feed the files into Digest::MD5 in binary mode.
This is a great way to do Incremental Backups.
This is also an easy way to verify checksums when downloading files from the internet which list their MD5 Checksums.
You'll need the Digest::MD5 Perl Module.
7
Need to GZip a file using Perl?
Use Compress::Zlib.
This is a simple perl script which creates a GZip file.
Use Compress::Zlib.
This is a simple perl script which creates a GZip file.
11
mattrmiller
Recursively delete a directory, emptying all contents.
1
By default, migrations will run on the development environment. Here's how you would specify another environment.
8
Class method to read a binary file and copy it to a byte array.
2
Well, ruby is actually so flexible that there is no real need to implement the goode olde signals & slots metaphor. But it serves nicely as demonstration of ruby properties, so here we go.
9
Methods for copy one directory (subdirectory inclusive).
Main method is xCopyDir.
Main method is xCopyDir.
-9
Write a set of bytes into a so-called binary file. The point is that we use BinaryWriter here and we have a byte array as input.
2
This function loads an File into an String.









