add check if is dir
add dir/link methods