Wrong fix, right bug.

git-svn-id: file:///home/svn/framework3/trunk@5681 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2008-09-24 20:47:01 +00:00
parent 8491ef3ff9
commit b3c3b29ed1
1 changed files with 2 additions and 2 deletions

View File

@ -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 == '..')