add method list of files and directories