diff --git a/README.md b/README.md index d78e6d6..4949126 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ See [example.md](example.md). ## Usage `usage: dtagfs [-f] [-o option[,options...]]` --f: fork to background +-f: don't fork to background ## Supported tag sources * Dublin Core (XMP), via [exempi-d](https://github.com/lesderid/exempi-d) diff --git a/source/app.d b/source/app.d index 4ca6546..db86f52 100644 --- a/source/app.d +++ b/source/app.d @@ -26,23 +26,23 @@ void main(string[] args) TagProvider[] tagProviders = [new DublinCoreTagProvider()]; string[] mountOptions; - bool fork; + bool foreground; arraySep = ","; auto options = getopt( args, "o", &mountOptions, - "f|fork", &fork + "f|foreground", &foreground ); - auto filesystem = mount(source, mountPoint, tagProviders, mountOptions, fork); + auto filesystem = mount(source, mountPoint, tagProviders, mountOptions, foreground); } -FileSystem mount(string source, string mountPoint, TagProvider[] tagProviders, string[] options, bool fork) +FileSystem mount(string source, string mountPoint, TagProvider[] tagProviders, string[] options, bool foreground) { auto filesystem = new FileSystem(source, tagProviders); - auto fuse = new Fuse("dtagfs", !fork, false); + auto fuse = new Fuse("dtagfs", foreground, false); fuse.mount(filesystem, mountPoint, options); return filesystem; diff --git a/source/filesystem.d b/source/filesystem.d index 82baf81..4adab59 100644 --- a/source/filesystem.d +++ b/source/filesystem.d @@ -159,11 +159,11 @@ class FileSystem : Operations } override bool access(const(char)[] path, int mode) - { + { //TODO: Check if this should always be true return true; - } + } override string[] readdir(const(char)[] path) {