sempervictus/metasploit-framework — comment on commit 5671e2f691380dc751c1ae6d02f4d2b46d433688
File: modules/post/windows/manage/download_exec.rb line 90
By wchen-r7:

This line only checks if session.fs.file.expand_path(datastore["DOWNLOAD_PATH"]) is nil or not. The problem is datastore['DOWNLOAD_PATH'] may return "", in that case 'path' will just return ""