nowsecure / fsmon

monitor filesystem on iOS / OS X / Android / FirefoxOS / Linux
https://www.nowsecure.com
MIT License
881 stars 151 forks source link

Filename only option (-f) working with JSON output #48

Closed Oeldin closed 3 years ago

Oeldin commented 3 years ago

I noticed that the -f option did not do anything when outputting JSON. Therefore I copied the logic to remove the path from the fm->file property from the normal output to the json output.

Maybe another option would be, to factor out a remove_path(char* filename){} function.