I have a program that moves/renames files based on a search text inputted by the user. Is there a function that checks to see if a path is a directory and not a file. This is the logic I'm looking for
if(the path given is a file and not a folder){
do some code;
}
else{
do some code;
}
Thanks,