I am trying to say that I want to name all files after each file's parent folder. Is this construction acceptable:
Name the file after each of which parent folder.
As a non-native speaker, I am worried if this might sound too complicated. If not, what will be the natural way of saying to deliver my intention? Also, please feel free to edit my post, if this post itself contains any grammatical mistake.