You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
634 B
23 lines
634 B
<?php
|
|
// Define the directory path
|
|
$directory = 'modpack/resources/CurseForge';
|
|
|
|
// Check if the directory exists
|
|
if (!is_dir($directory)) {
|
|
die("The directory $directory does not exist.");
|
|
}
|
|
|
|
// Get all files in the directory
|
|
$allFiles = glob($directory . '/*');
|
|
|
|
// Filter out .json files
|
|
$filteredFiles = array_filter($allFiles, function($file) {
|
|
return pathinfo($file, PATHINFO_EXTENSION) !== 'json';
|
|
});
|
|
|
|
// Output the filtered file names and their creation dates
|
|
foreach ($filteredFiles as $file) {
|
|
$creationTime = filectime($file);
|
|
echo basename($file) . ' - ' . date('Y-m-d H:i:s', $creationTime) . "\n";
|
|
}
|
|
?>
|
|
|