Sfoglia il codice sorgente

Move data to test.

scossu 1 mese fa
parent
commit
b36a140b65

+ 3 - 4
submission.lua

@@ -85,21 +85,20 @@ M.deposit = function(path)
     -- Move md to an ordered list.
     mdlist = {}
     for _, v in pairs(md) do table.insert(mdlist, v) end
-
     table.sort(mdlist, function (a, b) return (a._sort < b._sort) end)
 
     -- Infer structure from paths and row ordering.
     for i, v in ipairs(mdlist) do
         for j = i + 1, #mdlist do
-            print(string.format("comparing %s : %s", v.path, mdlist[j].path))
+            --print(string.format("comparing %s : %s", v.path, mdlist[j].path))
             if not v["next"] and
                     mdlist[j].path:match("(.*/)") == v.path:match("(.*/)") then
-                print("next match.")
+                --print("next match.")
                 v["next"] = mdlist[j].path
             end
             if not v.firstChild and
                     mdlist[j].path:match("^" .. escape_pattern(v.path)) then
-                print("First child match.")
+                --print("First child match.")
                 v.firstChild = mdlist[j].path
             end
         end

+ 0 - 0
data/sample_submission/postcard-bag/bagit.txt → test/sample_submission/postcard-bag/bagit.txt


+ 0 - 0
data/sample_submission/postcard-bag/data/12345/12345-back/567890.jpg → test/sample_submission/postcard-bag/data/12345/12345-back/567890.jpg


+ 0 - 0
data/sample_submission/postcard-bag/data/12345/12345-front/54321.jpg → test/sample_submission/postcard-bag/data/12345/12345-front/54321.jpg


+ 0 - 0
data/sample_submission/postcard-bag/data/submission.csv → test/sample_submission/postcard-bag/data/submission.csv


+ 0 - 0
data/sample_submission/postcard-bag/manifest-md5.txt → test/sample_submission/postcard-bag/manifest-md5.txt


+ 0 - 0
data/sample_submission/postcard-bag/manifest-sha512.txt → test/sample_submission/postcard-bag/manifest-sha512.txt


+ 0 - 0
data/schema.sql → test/schema.sql