【问题标题】:Which physical directory is the firefox's localstorage directory?firefox的localstorage目录是哪个物理目录?
【发布时间】:2016-10-04 07:30:13
【问题描述】:

我的本​​地电脑上安装了三个浏览器:firefox、chrome、opera。

find /  -name  'Local Storage'
/home/debian8/.config/opera/Local Storage
/home/debian8/.config/google-chrome/Default/Local Storage

可以使用find / -name 'Local Storage' 找到存储数据的物理目录,对于opera 和chrome,不适用于firefox。
firefox的localstorage目录是哪个物理目录?

ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage
default  permanent  temporary

为了追踪物理目录,在firefox的本地存储中存储了一个数组。 1.在firefox中打开https;//www.yahoo.com
2.在firebug--console中用js存储数组

var arrDisplay = [0, 1, 1, 1];
localStorage.setItem("menuTitle", arrDisplay);  

ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage 默认永久临时

它很可能在默认目录中。

ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default
https+++www.yahoo.com
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com
idb
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com/idb
301792106ttes.files   301792106ttes.sqlite-shm
301792106ttes.sqlite  301792106ttes.sqlite-wal
sqlite3  /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com/idb/301792106ttes.sqlite-shm
SQLite version 3.8.7.1 2014-10-29 13:59:56
Enter ".help" for usage hints.
sqlite> .table
sqlite> .exit
sqlite3  /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com/idb/301792106ttes.sqlite-wal
SQLite version 3.8.7.1 2014-10-29 13:59:56
Enter ".help" for usage hints.
sqlite> .table
sqlite> .exit
sqlite3  /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com/idb/301792106ttes.sqlite
SQLite version 3.8.7.1 2014-10-29 13:59:56
Enter ".help" for usage hints.
sqlite> .table
database            index_data          object_store        unique_index_data 

文件 object_data object_store_index sqlite> 从数据库中选择 *; 测试|https://www.yahoo.com|1|1473647521683690|0|49152 sqlite> 从 index_data 中选择 *; sqlite> 从 object_store 中选择 *; sqlite> 从 unique_index_data 中选择 *; sqlite> 从文件中选择 *; sqlite> 从 object_data 中选择 *; sqlite> select * from object_store_index;

对menuTitle一无所知。

ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/permanent
chrome  indexeddb+++fx-devtools  moz-safe-about+home

很可能是 indexeddb+++fx-devtools 目录。

ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/permanent/indexeddb+++fx-devtools
idb
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/permanent/indexeddb+++fx-devtools/idb
478967115deegvatroootlss--cans.files  478967115deegvatroootlss--cans.sqlite
sqlite3  /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/permanent/indexeddb+++fx-devtools/idb/478967115deegvatroootlss--cans.sqlite
SQLite version 3.8.7.1 2014-10-29 13:59:56
Enter ".help" for usage hints.
sqlite> .table
database            index_data          object_store          unique_index_data  file     object_data         object_store_index
sqlite> select * from database;
devtools-async-storage|indexeddb://fx-devtools|1|1475141158242996|0|49152
sqlite> select * from  object_store;
1|0|keyvaluepairs|

menuTitle 存储在 firefox 的安装目录中的什么位置?

【问题讨论】:

    标签: html firefox local-storage


    【解决方案1】:

    在现代 Firefox 中,localStorage 数据存储在 webappsstore.sqliteDoc 中,您可以在 profile folder 中找到它。
    在你的情况下,它看起来像你想要的:

    /home/debian8/.mozilla/firefox/4qfwwwo5.default/webappsstore.sqlite
    

    /storage/default/... 文件夹用于存放Indexed DB 文件——这与 localStorage 不同。

    【讨论】:

      猜你喜欢
      • 2011-12-27
      • 1970-01-01
      • 1970-01-01
      • 2011-04-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-05
      • 1970-01-01
      相关资源
      最近更新 更多