Changeset 111 for trunk/lua/cli.lua
- Timestamp:
- 01/22/2012 09:39:50 PM (16 months ago)
- File:
-
- 1 edited
-
trunk/lua/cli.lua (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lua/cli.lua
r98 r111 533 533 end 534 534 end 535 dst = util.joinpath(dst,util.basename(src))535 dst = fsutil.joinpath(dst,fsutil.basename(src)) 536 536 else 537 537 if not args.nolua then 538 538 local st = con:stat(dst) 539 539 if st and st.is_dir then 540 dst = util.joinpath(dst,util.basename(src))540 dst = fsutil.joinpath(dst,fsutil.basename(src)) 541 541 end 542 542 end 543 543 end 544 544 else 545 dst = cli:make_camera_path( util.basename(src))545 dst = cli:make_camera_path(fsutil.basename(src)) 546 546 end 547 547 … … 577 577 if not dst then 578 578 -- no dest, use final component of source path 579 dst = util.basename(src)579 dst = fsutil.basename(src) 580 580 elseif string.match(dst,'[\\/]+$') then 581 581 -- explicit / treat it as a directory 582 dst = util.joinpath(dst,util.basename(src))582 dst = fsutil.joinpath(dst,fsutil.basename(src)) 583 583 -- and check if it is 584 local dst_dir = util.dirname(dst)584 local dst_dir = fsutil.dirname(dst) 585 585 -- TODO should create it 586 586 if lfs.attributes(dst_dir,'mode') ~= 'directory' then … … 589 589 elseif lfs.attributes(dst,'mode') == 'directory' then 590 590 -- if target is a directory download into it 591 dst = util.joinpath(dst,util.basename(src))591 dst = fsutil.joinpath(dst,fsutil.basename(src)) 592 592 end 593 593
Note: See TracChangeset
for help on using the changeset viewer.