Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
29320a90
Commit
29320a90
authored
May 26, 2021
by
tr
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.1.181/root/Ftt_Common
parents
5317f1a0
91bc1857
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Project.cs
Ftt.PatchPack/Project.cs
+3
-2
No files found.
Ftt.PatchPack/Project.cs
View file @
29320a90
...
...
@@ -242,7 +242,8 @@ namespace Ftt.PatchPack
// 打包排除的文件,跳过
if
(
ExceptFiles
.
Contains
(
fileInfo
.
Name
))
continue
;
if
(!
IsValid
(
fileInfo
.
LastWriteTime
,
hours
))
continue
;
// 最后修改日期 和创建日期(直接复制到新目录时最后修改日期没变,创建日期变了。)
if
(!
IsValid
(
fileInfo
.
LastWriteTime
,
hours
)
&&
!
IsValid
(
fileInfo
.
CreationTime
,
hours
))
continue
;
string
path
=
fileInfo
.
Directory
.
FullName
.
Replace
(
oldPath
,
newPath
);
...
...
@@ -256,7 +257,7 @@ namespace Ftt.PatchPack
/// <summary>
///
是否有效
///
判断给定时间是否在有效期内。
/// </summary>
/// <param name="dateTime">比较时间</param>
/// <param name="hours">时间间隔,单位小时。-1 为永久有效</param>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment