Fixes #38: create nested directories with the FTP adapter.