Create a new channel as a copy of main.
Rename main to:
Delete main? This cannot be undone.
next_stash_filename = function(root) local i = 1 while true do local filename = root..'.'..tostring(i) if not file_exists(Stash_directory..filename) then return filename end i = i+1 end end