|
@@ -6,6 +6,7 @@ using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
using System.Timers;
|
|
|
using System.IO;
|
|
|
+using System.Net.Http.Headers;
|
|
|
|
|
|
namespace BaiduYunBeiFen.Controller
|
|
|
{
|
|
@@ -18,6 +19,7 @@ namespace BaiduYunBeiFen.Controller
|
|
|
static int InterValTime = 5000;
|
|
|
private static string CheckPath = "";
|
|
|
static string[]? FilePaths;
|
|
|
+ static FileInfo? FileTool;
|
|
|
//赋予计时器初始事件
|
|
|
public static void InitTimeThread()
|
|
|
{
|
|
@@ -53,7 +55,8 @@ namespace BaiduYunBeiFen.Controller
|
|
|
FilePaths = Directory.GetFiles(CheckPath);
|
|
|
foreach (string item in FilePaths)
|
|
|
{
|
|
|
- Console.WriteLine(item);
|
|
|
+ FileTool = new FileInfo(item);
|
|
|
+ Console.WriteLine(FileTool.CreationTime.ToString());
|
|
|
}
|
|
|
}
|
|
|
}
|