Changeset

4471:af7a9856950d

mod_migrate_http_upload: Don't include per-upload directory twice
author Kim Alvefur <zash@zash.se>
date Wed, 24 Feb 2021 18:13:19 +0100
parents 4470:203f0f06d766
children 4472:f210f242cf17
files mod_migrate_http_upload/mod_migrate_http_upload.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_migrate_http_upload/mod_migrate_http_upload.lua	Wed Feb 24 18:12:12 2021 +0100
+++ b/mod_migrate_http_upload/mod_migrate_http_upload.lua	Wed Feb 24 18:13:19 2021 +0100
@@ -34,7 +34,7 @@
 		if not oldest_uploads then break end
 		local item = table.remove(oldest_uploads, 1);
 		local source_directory = paths.join(legacy_storage_path, item.dir);
-		local source_filename = paths.join(source_directory, item.dir, item.filename);
+		local source_filename = paths.join(source_directory, item.filename);
 		local target_filename = dm.getpath(item.dir, component, "http_file_share", "bin", true);
 		if not lfs.attributes(source_filename, "mode") then
 			print("Not migrating missing file " .. source_filename);