As shown in this MWE
\RequirePackage{snapshot}
\documentclass{scrbook}
\usepackage{filecontents,biblatex}
\begin{filecontents}{bib/\jobname.bib}
@misc{anything,
author={A. Anyone}}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\chapter{My document}
This is my text
\end{document}
I like to have the bibliography in the subfolder bib. But filecontents cannot create the folder however I have --shell-escape enabled:
! I can't write on file `bib/bundledocbib.bib'.
<to be read again>
\relax
l.4 \begin{filecontents}{bib/\jobname.bib}
filecontentssuppose to make the content of a file available to your code as there was a file there (that is not true). I don't see a reason to make "iconic folders" because folders is out of scope for combination offilecontentswith tex (that just need a way to read the contents of every file and doesn't care for it's location anymore). – koleygr Feb 24 '18 at 22:56