View Issue Details

IDProjectCategoryView StatusLast Update
0019102MediaMonkey 5Extensions frameworkpublic2022-05-24 19:41
Reporterzvezdan Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
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 resolvedjiri 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

View 2 revisions

Thx, yes, renameFileAsync needs to be used instead.

Updated the documentation and marked renameFile as LEGACY