I deploy to cloudfoundry an application which need a directory for lucene. This application failed to start because there is not the configured directory. I search on Cloundfoundry forums but i did not found how to create a directory on my server on CloudFoundry. If someone have a documentation or already did it, it will help me. Thanks
Yeah you shouldn't be creating directories inside your app. Cloud Foundry works incredibly well with 12 factor apps (http://12factor.net/). One of the factors is not using local storage but use an external provider. I would highly suggest using a third party to do your Lucene work.
Cloudant provides Lucene indexes to users. Also Cloudant has a pretty big free tier.