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.
a=Net::FTP.open('path', 'username','password') a.chdir('any name of directory')
しかし、から親ディレクトリにアクセスする方法a.pwd()
a.pwd()
ホストプラットフォームがサポートしている場合は親ディレクトリに変更するために使用a.chdir('..')し(ほとんどすべてのプラットフォームがサポートする必要があります)a.sendcmd('CDUP')、プラットフォームに依存しない方法で親ディレクトリに変更するために使用します。
a.chdir('..')
a.sendcmd('CDUP')