get cur dir and files in methods