. * */ // Init owncloud require_once('../../../lib/base.php'); // Check if we are a user OC_JSON::checkLoggedIn(); // Get the path from GET $path = isset($_GEt['path']) ? $_GET['path'] : ''; if($path != '') { // Find the mtime $mtime = OC_Filesystem::filemtime($path); if($mtime) { OC_JSON::success(array('data' => array('path' => $path, 'mtime' => $mtime))); } else { OC_JSON::error(); } } else { OC_JSON::error(); }