in reply to How to sort filename based on time via FTP
Use the feature method (I'm assuming you're using Net::FTP) to determine if mdtm is supported.