main.cpp
bool IsDirectory(char *File)
{
	struct stat st;
	if(stat(File, &st) == 0 && S_ISDIR(st.st_mode)) return true;
	else if(!strcmp(File, "..")) return true; //for some reason this isn't listed as a directory O_o
	else return false;
}
/* Checks whether the specified file is a directory.
 * Inputs:
 * -File: Filename to check.
 * Returns: true if directory, false if not.
 */
Checks whether the specified file is a directory.
Inputs:
-File: Filename to check.
Returns: true if directory, false if not.
Checks whether the specified file is a directory . Inputs : - File : Filename to check . Returns : true if directory false if not .
bool IsDirectory(char *File)
{
	struct stat st;
	if(stat(File, &st) == 0 && S_ISDIR(st.st_mode)) return true;
	else if(!strcmp(File, "..")) return true; 
	else return false;
}
bool IsDirectory ( char * File ) { struct stat st ; if ( stat ( File , & st ) == 0 && S_ISDIR ( st . st_mode ) ) return true ; else if ( ! strcmp ( File , " " ) ) return true ; else return false ; }
Checks whether the specified file is a directory.
Checks whether the specified file is a directory .
//for some reason this isn't listed as a directory O_o