We are using mkdir to be able to easily export nested folders.
Maybe we should not in the end. Maybe whoever using this should create parent directories before on his own.