Use path_relative_from like a civilized person. Add a function for finding the largest number corresponding to a subdirectory under some given directory. Make snapshots to increasing number directories