View Issue Details

IDProjectCategoryView StatusLast Update
0019102MMW 5Extensions frameworkpublic2022-08-30 23:55
Reporterzvezdan Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version5.0 
Target Version5.0.4 
Summary0019102: renameFile method freezes the program when trying to overwrite a file
DescriptionrenameFile method doesn't support the third OverwritePrompt argument as it is stated on web API.

When trying to move file over the file with the same name, it throws the error which freezes the program:
"This cannot be called from JS thread!"

It works fine when the target file doesn't exist.

Edit: I just found that there exists renameFileAsync method as well, which is not mentioned in web API. It supports the third argument and it is not freezing program when overwriting the file with the same name.
TagsNo tags attached.
Fixed in build

Relationships

related to 0019104 closedjiri app.filesystem.fileExists method doesn't exists and it is needed (synchronous) 

Activities

Ludek

2022-05-24 19:35

developer   ~0068219

Last edited: 2022-05-24 19:36

Thx, yes, renameFileAsync needs to be used instead.

Updated the documentation and marked renameFile as LEGACY

peke

2022-08-30 23:55

developer   ~0069101

Verified docs and implementation in 2661