Bug #2343

createStore is not storing actually (api v1 duktape)

Added by Leonid Protasov over 6 years ago. Updated over 6 years ago.

Status:FixedStart date:11/06/2014
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:API
Target version:4.8
Found in version:Latest BE Platform:Linux

Description

store.homeitems = plugin.createStore('playlists/homeitems', true);

navi-x [ERROR]: Error (Unable to open file '/root/.hts/showtime/plugins/navi-x/store/playlists/homeitems' -- No such file or directory) at /root/showtime/src/ecmascript/es_fs.c:106
navi-x [ERROR]: STACK DUMP: Error: Unable to open file '/root/.hts/showtime/plugins/navi-x/store/playlists/homeitems' -- No such file or directory
                    /root/showtime/src/ecmascript/es_fs.c:106
                    anon  native strict preventsyield
                    anon fs:4
                    anon showtime/store:20 preventsyield

Associated revisions

Revision b0323725
Added by Andreas Smas over 6 years ago

ecmascript: Make sure store.create() can mkdir the full path leading to the file

Fixes #2343

Change included in version 4.7.451

History

#1 Updated by Andreas Smas over 6 years ago

  • Description updated (diff)

I suppose that the folder '/root/.hts/showtime/plugins/navi-x/store/playlists/' doesn't exist?

#2 Updated by Leonid Protasov over 6 years ago

Yes.

#3 Updated by Andreas Smas over 6 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF