Just split file to many files. Inspired by https://www.npmjs.com/package/split-file Based on https://stackoverflow.com/a/6153843/5005026
-
Install gem:
$ gem install split_file_ultra
or for IRB
> require 'split_file_ultra'
-
And use it:
> SplitFileUltra.split(original, 1024*1024)
where
original - name of spliting file
1024*1024 - size of chunk, optional, default = 1024*1024 bytes
Returns array of files.
Be free for it! Welcome!
I think it is nearly RC.
File Rotator is released under the MIT License.