scandir nie otwiera katalogu

Mam problem zscandir(). Próbuję wyświetlić pliki w moimsnaps-katalog na stronie pod poddomeną w mojej chmurze.

To jest PHP, którego użyłem.

$files = scandir('./snaps');
print_r($files);

a to jest błąd.

Warning: scandir(./snaps) [function.scandir]: failed to open dir: No such file or directory in /home/u703778423/public_html/cloud/index.php on line 39

Warning: scandir() [function.scandir]: (errno 2): No such file or directory in /home/u703778423/public_html/cloud/index.php on line 39

Nie mam pojęcia, co jeszcze robić.

questionAnswers(3)

yourAnswerToTheQuestion