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

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

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World