Changeset

4472:f210f242cf17

mod_migrate_http_upload: Remove storage path when done Could be used to check if migration has been done already.
author Kim Alvefur <zash@zash.se>
date Wed, 24 Feb 2021 18:46:20 +0100
parents 4471:af7a9856950d
children 4473:3b50a9a75fb6
files mod_migrate_http_upload/mod_migrate_http_upload.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_migrate_http_upload/mod_migrate_http_upload.lua	Wed Feb 24 18:13:19 2021 +0100
+++ b/mod_migrate_http_upload/mod_migrate_http_upload.lua	Wed Feb 24 18:46:20 2021 +0100
@@ -54,5 +54,6 @@
 	for user, uploads in pairs(legacy_uploads) do
 		assert(dm.list_store(user, user_host, "http_upload", uploads));
 	end
+	os.remove(legacy_storage_path);
 	return 0;
 end