it gives some error that 'you cannot use dir() function without pathname.