renoved flag isFolder