Commit 7d6b0723 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

GadgetAdd: Automatically Add Filename if the path endwith '/'

parent 2a4f791b
......@@ -25,8 +25,8 @@
})
);
} else {
if (!url) {
url = file_list[0].name;
if (!url || url.endsWith("/")) {
url = url + file_list[0].name;
}
promise_list.push(
gadget.crib_sw_put(url,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment