+ /*
+ * Creates file to given path by first checking whether
+ * the directories exist and have enough permissions.
+ */
+ static bool mkfile(const char *file_name_with_path, bool writable);
+ /*
+ * Check whether file exist with specified access rights
+ */
+ static bool file_exist(const char *file_name_with_path, bool writable);