Commits

Oben Sonne committed 2c78ae0

Allow mounting on a non-empty path

Fixes issue #3

Comments (0)

Files changed (1)

         elif not os.path.isdir(mpoint):
             msg += "mount point does not exist or is not a directory"
         else:
-            cmd = ["encfs", "-S", epath, mpoint]
+            cmd = ["encfs", "-o", "nonempty", "-S", epath, mpoint]
             p = subprocess.Popen(cmd, stdin=subprocess.PIPE)
             p.communicate(input="%s\n" % item.secret)
             msg += p.returncode and "FAILED" or "OK"