• but I don't know the filename or you can say any fillename in directory.

    I know only path upto directory.

    if a file is in directory then execute second step.

    please help.