. * */ // Init owncloud // Check if we are a user OCP\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) { OCP\JSON::success(array('data' => array('path' => $path, 'mtime' => $mtime))); } else { OCP\JSON::error(); } } else { OCP\JSON::error(); }