Tuesday, 3 September 2013

Detecting whether a folder is in a directory or not.

Detecting whether a folder is in a directory or not.

I want to make sure a folder whose name is known is in a specific
directory or not. the directory that I want to check is my git repository.
Assume that my git repository directory is
/home/cmp/Desktop/GIT_REFERENCE_REPOSITORIES and I want to detect the
folder namely 'test' is in there or not.
Is there anyone who can help me ? Thanks in advance!

No comments:

Post a Comment