From a64ff21480952c5c55d997a73c86326111fbd7ec Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Mon, 31 Dec 2018 01:42:46 +0800 Subject: [PATCH] Fix resolve bug --- grab.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grab.lua b/grab.lua index f40927a..3e1421c 100644 --- a/grab.lua +++ b/grab.lua @@ -9,7 +9,7 @@ local event=require('event') local term=require('term') local args,options=shell.parse(...) -local grab_version="Grab v2.4.7.4-alpha" +local grab_version="Grab v2.4.7.5-alpha" local grab_version_info={ version=grab_version } @@ -665,7 +665,7 @@ local function try_resolve_path(src,dst) return true,dst .. src_name end else -- dst is the filename - local tb_segdst=filesystem.segments(src) + local tb_segdst=filesystem.segments(dst) if(#tb_segdst>1) then local name=table.concat(tb_segdst,"/",1,#tb_segdst-1) if(not filesystem.makeDirectory(name) and not filesystem.exists(name)) then