1. node.upload_directory() won’t upload nested folders if they have no contents

node.upload_directory() won’t upload nested folders if they have no contents

Home Forums FABRIC General Questions and Discussion node.upload_directory() won’t upload nested folders if they have no contents

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3847
    Devin Lane
    Participant

      Hi,

      I noticed when running node.upload_directory(), if one of the subfolders in the directory I pass is empty, that folder will not be uploaded. This is needed for the structure of the node’s FS for when I run a python script that will eventually write to that directory. I know there are workarounds (such as including an empty file in the folder or creating the directory before running my python script manually) but I think this should be a feature built in to the function. Could someone help with this?

       

      Thanks!

      #3877
      Paul Ruth
      Keymaster

        This is an effect of the tar command not adding empty folders.   I fixed it in the newest branch and it will be included in an upcoming release.

        Thanks.

        #3887
        Devin Lane
        Participant

          Thanks, I tested it and it works well 👍

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The topic ‘node.upload_directory() won’t upload nested folders if they have no contents’ is closed to new replies.