Skip to content

Commit a5d5c44

Browse files
committed
[21552] Check if the name is taken before creating the standalone folder
1 parent e2b53b4 commit a5d5c44

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ide-support/revsaveasstandalone.livecodescript

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ command revDoSaveAsStandalone pStack, pFolder, pSettings, @xStandalonePaths
311311
revOutputDirectories pFolder & slash
312312
put the result into tOutputFolder
313313
if there is no folder tOutputFolder then
314+
if there is a file tOutputFolder then
315+
throw "Cannot create a folder" && quote & tOutputFolder & quote && \
316+
". This name is already taken. Please choose a different name."
317+
end if
314318
create folder tOutputFolder
315319
end if
316320

0 commit comments

Comments
 (0)