Skip to content

Commit

Permalink
Fix DeleteFileAsync of Management API.
Browse files Browse the repository at this point in the history
  • Loading branch information
sevensolutions committed Sep 15, 2024
1 parent 4d72511 commit 73b6a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NomadIIS/Services/IisTaskHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1035,9 +1035,9 @@ public Task DeleteFileAsync ( string path )
if ( path.EndsWith( "/*" ) || path.EndsWith( "/*.*" ) )
{
if ( path.EndsWith( "/*" ) )
path = path[..2];
path = path[..^2];
else
path = path[..4];
path = path[..^4];

physicalPath = Path.Combine( _taskConfig.AllocDir, _taskConfig.Name, path );
FileSystemHelper.CleanFolder( physicalPath );
Expand Down

0 comments on commit 73b6a8c

Please sign in to comment.