getFileName() method for getting fileName from the given path added.