chilango:

Moving millions of images every day from the root dir to a subdir to have the nested structure is a waste of time and server moneys.


That’s right and I would recommend to use symbolic links instead of moving data around, if necessary.



 chilango:

Again, its not that writing a custom function is hard, but the fact that it seems such an ovious thing to have in the API and some users clearly need it (I suspect practitioners building pipelines). Hope this helps clarify what I meant.


That makes sense and we would be happy to accept a PR for it. 
I would suggest to either post in the linked issue or create a new feature request in the torchvision repository to discuss the implementation.