#Include <FTPEx.au3>
$sDir = '/pub/extensions/nightly'
$hFtp = _FTP_Open('MyFtp')
$hSession = _FTP_Connect($hFtp, 'ftp.mozilla.org', '', '')
_FTP_DirSetCurrent($hSession, '/pub/extensions/tinderbox-builds/phlox-trunk')
ConsoleWrite(_FTP_DirGetCurrent($hSession) & @CR)
While 1
If Not _FTP_DirSetCurrent($hSession, '..') Then
ExitLoop
EndIf
ConsoleWrite(_FTP_DirGetCurrent($hSession) & @CR)
WEnd
_FTP_Close($hFtp)