2013-10-01 40 views

回答

0

參考cakephp文件和文件夾API,我設法使用File::lastChange()方法來解決我的問題。感謝您的幫助。這裏有一個例子:

App::uses('Folder', 'Utility'); 
App::uses('File', 'Utility'); 
$file = new File('/tmp/test.txt'); 
//the following will return an epoch time, can be formatted by date method 
echo $file->lastChange(); 
相關問題