mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-06 22:04:19 +00:00
Make the file store ignore OS X DS_Store files
This commit is contained in:
parent
0cfef8affa
commit
45dcb4f8e9
@ -67,7 +67,7 @@ function FileStore(dirpath,store,callback) {
|
|||||||
} else {
|
} else {
|
||||||
for(var t=0; t<files.length; t++) {
|
for(var t=0; t<files.length; t++) {
|
||||||
var f = files[t];
|
var f = files[t];
|
||||||
if(f !== ".." && f !== "." && f.indexOf(".meta") !== f.length-5) {
|
if(["..",".",".DS_Store"].indexOf(f) === -1 && f.indexOf(".meta") !== f.length-5) {
|
||||||
self.loadQueue.push({
|
self.loadQueue.push({
|
||||||
filepath: path.resolve(self.dirpath,f)
|
filepath: path.resolve(self.dirpath,f)
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user