NFCFS

Example

Suppose you have a directory /Users/thomas/projects where you have the following files:

MacBook-Pro:projects thomas$ ls -l
total 0
drwxr-xr-x  2 thomas  wheel  68 Dec 31 13:08 another_project
-rw-r--r--  1 thomas  wheel   0 Dec 31 13:09 file.txt
drwxr-xr-x  2 thomas  wheel  68 Dec 31 13:08 some_project

Suppose you want to work with this diretory through NFCFS. You type:

mkdir /Volumes/nfcfs

nfcfs /Volumes/nfcfs \
-omodules=threadid:subdir,subdir=/Users/thomas/projects \
-oallow_other,volname=PROJECTS

Note that the seconds command above spans multiple lines. The arguments to nfcfs are the same as the arguments to the MacFuse loopback file system it is based on, documented here.

The NFCFS file system is now mounted at /Volume/nfcfs:

MacBook-Pro:projects thomas$ ls -l /Volumes/nfcfs
total 0
drwxr-xr-x  2 thomas  wheel  68 Dec 31 13:08 another_project
-rw-r--r--  1 thomas  wheel   0 Dec 31 13:09 file.txt
drwxr-xr-x  2 thomas  wheel  68 Dec 31 13:08 some_project
Accessing the files via /Volumes/nfcfs will, for most purposes, be exactly the same as accessing them via /Users/thomas/projects, but hopefully applications that have problems with international characters in file names, such as Git or Subversion, will work better.