with dir(".", true) it works, but it gives me that :
total 0
drw-rw-rw- 1 user group 0 Mar 21 21:30 .
drw-rw-rw- 1 user group 0 Mar 21 21:30 ..
drw-rw-rw- 1 user group 0 Mar 21 21:35 parutions
but when i put the parameter detailed listing at false, to get only the directories name, it returns nothing !
When i execute dir(".", true) on another server it returns all the files and the directories, i was thinking that il will return only the directory name