Create file method fixed

Didn't upload the content of directories which did only exist at the
local side.