java - JimFS: what is the purpose of /work directory -


i started use google jimfs , doing ls found there work directory in root of fs. purpose of folder?

it's arbitrary directory working directory (the directory relative paths resolved against) isn't root directory, since typically isn't in real situations. can change working directory whatever want (including root) customizing configuration. here's example of setting working directory root (in case /work directory won't created):

configuration config = configuration.unix().tobuilder()     .setworkingdirectory("/")     .build(); 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -