if ("/"->is_file ()) ...                                                       /* 0 */

if ("/"->is_directory ()) ...                                                  /* 1 */

if ("./text.txt"->is_file ()) ...                                              /* 1 */

if ("./text.txt"->is_directory ()) ...                                         /* 0 */

if ("./random-file-name.txt"->is_file ()) ...                                  /* "ERR_FILE_NOT_EXISTS" */

if ("./random-file-name.txt"->is_directory ()) ...                             /* "ERR_DIRECTORY_NOT_EXISTS" */

if ("./random/directory/name"->is_file ()) ...                                 /* "ERR_FILE_NOT_EXISTS" */

if ("./random/directory/name"->is_directory ()) ...                            /* "ERR_DIRECTORY_NOT_EXISTS" */

