Are subdirectories suported under files folder?



I found confusing information about support for subfolders in chef. I found that subfolders are not supported under “recipes” etc but “files” are not speficially mentioned and they works for sure with chef-zero. So are subfolders under “files” supported with chef server?
I have files in subfolder of “files” and those are copied to root of files folder with no subfolder being created with “knife cookbook upload” command


You can nest stuff under files/ as deeply as you want. This is mostly used with the remote_directory resource, otherwise it’s not super useful. If you have enough files in one cookbook that you need to organize them, you probably have too many. Chef isn’t a (good) file distribution tool, OS packages are usually better.