Hi
I want to write a script that reads a directory name, checks if the directory exists and lists the content of that directory.
That's what I have at the moment.
function listDirectory
{
echo "Give in a directory name"
read name
#Here I want to check if the directory exitst and then
#print the content of that directory (if exists off course)
#If directory doesn't exists:
echo "Directory doesn't exists. Closing the application..."
exit 0
}
listDirectory