Fixed tfs copyFromLocal for directories

Now it recursively copies the files and subdirectories inside the given
directory.