adamfeuer/rotate-backups — pull request #7 by Aentfs (2013-05-03 23:46:24+00:00)
Title: Fixes for the Issues #4 and #6

The check in move_to which ensures the destination folder exist checks for the whole destination path. Therefore it generates a directory in the destination folder named after the file and puts it inside this folder.

Issue #4 shuold by fixed because the generation of extra directorys is eleminated.
Issue #6 should be fixed because the folders aren't generated anymore. Your script assumed they where files therefore the remove failed.