now handles files or directories