Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如:代码片段 fname=gets.to_s sftp.download!("/Users/#{fname}", ".")
它给了我 download.rb 错误,在 on_open 下没有这样的文件(2)。但是当我直接在路径上提及完整路径时,同样有效。只有当我通过获取用户输入进行字符串插值时,它才起作用。请举个例子。。