Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto-tx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vamp
auto-tx
Commits
9ee83db4
Commit
9ee83db4
authored
7 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Make MoveToManagedLocation boolean instead of void.
parent
34352f39
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ATxService/AutoTx.cs
+5
-2
5 additions, 2 deletions
ATxService/AutoTx.cs
with
5 additions
and
2 deletions
ATxService/AutoTx.cs
+
5
−
2
View file @
9ee83db4
...
...
@@ -711,7 +711,9 @@ namespace ATxService
/// </summary>
/// CAUTION: this method is called as a consequence of the main timer being triggered, so
/// be aware that any message dispatched here could potentially show up every second!
private
void
MoveToManagedLocation
(
DirectoryInfo
userDir
)
{
/// <param name="userDir">The directory to be moved to the processing location.</param>
/// <returns>True in case of success, false otherwise.</returns>
private
bool
MoveToManagedLocation
(
DirectoryInfo
userDir
)
{
string
errMsg
;
try
{
// first check for individual files and collect them:
...
...
@@ -731,7 +733,7 @@ namespace ATxService
var
timeStamp
=
TimeUtils
.
Timestamp
();
var
targetDir
=
Path
.
Combine
(
processingPath
,
timeStamp
,
userDir
.
Name
);
if
(
FsUtils
.
MoveAllSubDirs
(
userDir
,
targetDir
))
return
;
return
true
;
errMsg
=
$"unable to move [
{
userDir
.
FullName
}
]"
;
}
...
...
@@ -740,6 +742,7 @@ namespace ATxService
}
Log
.
Error
(
"=== Moving directory [{0}] to the processing location failed: {1} ==="
,
userDir
.
FullName
,
errMsg
);
return
false
;
}
/// <summary>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment