How can I select an SQLite DB from a custom path using XPCOM? I could already select the db and process it when it is inside the paths like ProfD
or HomeDesk
but I need to access it by its absolute file path.
Asked
Active
Viewed 188 times
-1

Wladimir Palant
- 56,865
- 12
- 98
- 126

Bijoy
- 399
- 2
- 7
- 15
1 Answers
0
See documentation, you merely need to change the file in the example. If you want to access a file by its absolute path then instead of using FileUtils.getFile()
you should use FileUtils.File
constructor:
var file = new FileUtils.File("c:\\foo\\bar");

Wladimir Palant
- 56,865
- 12
- 98
- 126