null check made on file's parent when it is root level folder