Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Malfromed Split Archive Fix

DZone's Guide to

Malfromed Split Archive Fix

·
Free Resource
Fix a malformed split archive

Turns files name *.001, *.002, *.003 into *.r01, *.r02, *.r03

require 'fileutils'
Dir.entries(File.dirname(__FILE__)).each { FileUtils.mv(File.join(File.dirname(__FILE__), entry), File.join(File.dirname(__FILE__), entry.gsub!(/\.(0)(\d+)\z/, '.r\2')), :verbose => true) if entry[/\.(0)(\d+)\z/]}
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}