unstash_pane = function(pane) local src = Stash_directory..pane.filename local contents, error = love.filesystem.read(src) if not contents then return print_to_output(error) end love.filesystem.createDirectory(Directory) local filename = unstash_filename(pane.filename) local dest = Directory..filename local success, error = love.filesystem.write(dest, contents) if not success then return print_to_output(error) end pane.filename = filename pane.is_stash = nil end