For some reason, the name of the current directory is always '.'
In reply to Re^5: listing all files of a dir by hdb in thread listing all files of a dir by torres09