X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ffilesystem%2Ffilename.h;h=9c4eb56beb7b9a582f70e5881dbba7951fcbf9b3;hb=c160b4bac86a40cf5ce4fc0dcdab69afc5edad2f;hp=1f2c7d3ba34bf40a302ade79e41a447911c73d3e;hpb=293f927b59ff6a34067e7cf37c00d1a4291095a1;p=feisty_meow.git diff --git a/nucleus/library/filesystem/filename.h b/nucleus/library/filesystem/filename.h index 1f2c7d3b..9c4eb56b 100644 --- a/nucleus/library/filesystem/filename.h +++ b/nucleus/library/filesystem/filename.h @@ -141,6 +141,10 @@ public: bool is_readable() const; bool is_executable() const; + // is_normal makes sure that the file or directory is not a named pipe or other + // special type of file. symbolic links are considered normal. + bool is_normal() const; + enum write_modes { ALLOW_NEITHER = 0x0, ALLOW_READ = 0x1, ALLOW_WRITE = 0x2, @@ -182,10 +186,12 @@ public: character that is substituted instead of illegal characters. */ void separate(structures::string_array &pieces) const; - //!< breaks the filename into its component directories. + //!< breaks the filename into its component parts. /*!< this returns an array containing the component names. the last component, unless the filename held is actually a directory, should be the - name of the file. if the first character is a directory, then the first + name of the file. +//hmmm: what does this mean, below? + if the first character is a directory, then the first component will be empty. */ void join(const structures::string_array &pieces);