Wrong fix, right bug.
git-svn-id: file:///home/svn/framework3/trunk@5681 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
8491ef3ff9
commit
b3c3b29ed1
|
@ -195,7 +195,7 @@ class Dir < Rex::Post::Dir
|
|||
def Dir.download(dst, src, recursive = false, &stat)
|
||||
self.entries(src).each { |src_sub|
|
||||
dst_item = dst + ::File::SEPARATOR + src_sub
|
||||
src_item = src + ::File::SEPARATOR + src_sub
|
||||
src_item = src + File::SEPARATOR + src_sub
|
||||
|
||||
if (src_sub == '.' or src_sub == '..')
|
||||
next
|
||||
|
@ -230,7 +230,7 @@ class Dir < Rex::Post::Dir
|
|||
#
|
||||
def Dir.upload(dst, src, recursive = false, &stat)
|
||||
::Dir.entries(src).each { |src_sub|
|
||||
dst_item = dst + ::File::SEPARATOR + src_sub
|
||||
dst_item = dst + File::SEPARATOR + src_sub
|
||||
src_item = src + ::File::SEPARATOR + src_sub
|
||||
|
||||
if (src_sub == '.' or src_sub == '..')
|
||||
|
|
Loading…
Reference in New Issue