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

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

c# - Specify IP End Point in FiddlerCore -

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -