From bf948445c2d018ab5e724c721396c2f3e7ccf4b9 Mon Sep 17 00:00:00 2001 From: Yves Langisch Date: Wed, 10 Nov 2010 16:16:18 +0000 Subject: [PATCH] Creating files is only possible inside a bucket. --- source/ch/cyberduck/core/cf/CFSession.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/ch/cyberduck/core/cf/CFSession.java b/source/ch/cyberduck/core/cf/CFSession.java index a3958900884..16518d978bc 100644 --- a/source/ch/cyberduck/core/cf/CFSession.java +++ b/source/ch/cyberduck/core/cf/CFSession.java @@ -182,6 +182,17 @@ public boolean isRenameSupported(Path file) { return false; } + /** + * Creating files is only possible inside a bucket. + * + * @param workdir The workdir to create query + * @return False if directory is root. + */ + @Override + public boolean isCreateFileSupported(Path workdir) { + return !workdir.isRoot(); + } + /** * Cache distribution status result. */