Skip to content

Commit a318787

Browse files
author
gevorg95
committed
Now updater does create folder structure for web app files
1 parent 2cff841 commit a318787

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/cls/CacheUpdater/UDL.cls

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,10 @@ ClassMethod CreateWebFile(contentStream As %GlobalCharacterStream, binaryStream
286286
Set st = $$$OK
287287
Try
288288
{
289-
Set tDefaultApp=$system.CSP.GetDefaultApp($namespace)_"/"
290-
set tCSPRootPath = $system.CSP.GetFileName(tDefaultApp)
291-
289+
Set tCSPRootPath = $system.CSP.GetFileName($system.CSP.GetDefaultApp($namespace)_"/")
290+
292291
Set tFileName = $Piece($Piece(url,"?",1),"/",*)
293-
294-
Set tCSPSubPath = $Piece(url,tDefaultApp,2,*) //still has filename and ? parameters in it
295-
Set tCSPSubPath = $Piece(tCSPSubPath, tFileName,1) //now it does't
292+
Set tCSPSubPath = $Piece(url,"/",7,*-1)_"/"
296293

297294
set tFileDirectory = tCSPRootPath_tCSPSubPath
298295
Set tFullFileName = tFileDirectory_tFileName

0 commit comments

Comments
 (0)