Ad hoc path

This commit is contained in:
Hyunchul Kim 2020-11-17 23:50:48 +09:00
parent 340a0ae52a
commit ddd50be444
2 changed files with 192 additions and 1 deletions

View file

@ -25,7 +25,7 @@ class Fragments:
self.ignore = ['.ignore'] self.ignore = ['.ignore']
self.ignore_file = '.ignore' self.ignore_file = '.ignore'
self.index_file = 'index.json' self.index_file = 'test_data/index.json'
if os.path.isfile(self.index_file): if os.path.isfile(self.index_file):
with open(self.index_file) as json_file: with open(self.index_file) as json_file:

191
test_data/index.json Normal file
View file

@ -0,0 +1,191 @@
[
{
"__Fragment__": {
"index": 0,
"update": 1605624006.157665,
"directory": "./test_data/event_lecture",
"artist": "event_lecture",
"file": "event_0000"
}
},
{
"__Fragment__": {
"index": 1,
"update": 1605624006.16457,
"directory": "./test_data/event_lecture",
"artist": "event_lecture",
"file": "event_0001"
}
},
{
"__Fragment__": {
"index": 2,
"update": 1503837516.0,
"directory": "./test_data/carrot",
"artist": "carrot",
"file": "\u110c\u1175\u11af\u110c\u116e.mp4"
}
},
{
"__Fragment__": {
"index": 3,
"update": 1567569419.653444,
"directory": "./test_data/carrot",
"artist": "carrot",
"file": "\u1101\u116e\u1106\u116e\u11af\u1101\u116e\u1106\u116e\u11af.mov"
}
},
{
"__Fragment__": {
"index": 4,
"update": 1603737283.2655902,
"directory": "./test_data/grape",
"artist": "grape",
"file": "IMG_1693.png"
}
},
{
"__Fragment__": {
"index": 5,
"update": 1603737296.0838926,
"directory": "./test_data/grape",
"artist": "grape",
"file": "IMG_1340.jpg"
}
},
{
"__Fragment__": {
"index": 6,
"update": 1603737307.8227732,
"directory": "./test_data/grape",
"artist": "grape",
"file": "IMG_1690.png"
}
},
{
"__Fragment__": {
"index": 7,
"update": 1603737326.0093782,
"directory": "./test_data/grape",
"artist": "grape",
"file": "IMG_1334.png"
}
},
{
"__Fragment__": {
"index": 8,
"update": 1603737524.8806562,
"directory": "./test_data/grape",
"artist": "grape",
"file": "sample.pdf"
}
},
{
"__Fragment__": {
"index": 9,
"update": 1604243002.5126157,
"directory": "./test_data/carrot",
"artist": "carrot",
"file": "RTF\ud14c\uc2a4\ud2b8.rtf"
}
},
{
"__Fragment__": {
"index": 10,
"update": 1604247403.2948427,
"directory": "./test_data/carrot",
"artist": "carrot",
"file": "md\uc4f0\uae30.md"
}
},
{
"__Fragment__": {
"index": 11,
"update": 1604247403.2950983,
"directory": "./test_data/carrot",
"artist": "carrot",
"file": "txt\uc4f0\uae30.txt"
}
},
{
"__Fragment__": {
"index": 12,
"update": 1604851924.8719456,
"directory": "./test_data/fig",
"artist": "fig",
"file": "20201022"
}
},
{
"__Fragment__": {
"index": 13,
"update": 1604851924.8802848,
"directory": "./test_data/fig",
"artist": "fig",
"file": "20201029"
}
},
{
"__Fragment__": {
"index": 14,
"update": 1605496049.4045768,
"directory": "./test_data/carrot",
"artist": "carrot",
"file": "1030.txt"
}
},
{
"__Fragment__": {
"index": 15,
"update": 1605496049.4053128,
"directory": "./test_data/carrot",
"artist": "carrot",
"file": "test002.txt"
}
},
{
"__Fragment__": {
"index": 16,
"update": 1605496049.4058702,
"directory": "./test_data/fig",
"artist": "fig",
"file": "20201020"
}
},
{
"__Fragment__": {
"index": 17,
"update": 1605496049.4062285,
"directory": "./test_data/fig",
"artist": "fig",
"file": "fig002.txt"
}
},
{
"__Fragment__": {
"index": 18,
"update": 1605496049.4064658,
"directory": "./test_data/fig",
"artist": "fig",
"file": "test.txt"
}
},
{
"__Fragment__": {
"index": 19,
"update": 1605496049.406584,
"directory": "./test_data/fig",
"artist": "fig",
"file": "test001.txt"
}
},
{
"__Fragment__": {
"index": 20,
"update": 1605496049.407514,
"directory": "./test_data/grape",
"artist": "grape",
"file": "fbdbdbf54d766dd86e5964de01ddc16b.jpg"
}
}
]