added getter method for directories
when moving a file, determine if this file is uploaded or not