Megatest

Diff
Login

Differences From Artifact [91e90bcdc7]:

To Artifact [e0ba84ec3a]:


96
97
98
99
100
101
102
103
104
105
106
107





108
109
110
111
112
113
114
96
97
98
99
100
101
102





103
104
105
106
107
108
109
110
111
112
113
114







-
-
-
-
-
+
+
+
+
+







;; 12 	number of blocks allocated 	st_blocks 	

(define (filedb:add-path-stat db path parent statinfo)
  (let ((stmt (sqlite3:prepare db "INSERT INTO paths (path,parent_id,mode,uid,gid,size,mtime) VALUES (?,?,?,?,?,?,?);")))
	(sqlite3:execute stmt
			 path
			 parent
			 (vector-ref statinfo 1) ;; mode
			 (vector-ref statinfo 3) ;; uid
			 (vector-ref statinfo 4) ;; gid
			 (vector-ref statinfo 5) ;; size
			 (vector-ref statinfo 8) ;; mtime
			 (safe-vector-ref statinfo 1) ;; mode
			 (safe-vector-ref statinfo 3) ;; uid
			 (safe-vector-ref statinfo 4) ;; gid
			 (safe-vector-ref statinfo 5) ;; size
			 (safe-vector-ref statinfo 8) ;; mtime
			 )
	(sqlite3:finalize! stmt))) ;;  (filedb:get-current-time-string))))
  
(define (filedb:add-path db path parent)
  (let ((stmt (sqlite3:prepare db "INSERT INTO paths (path,parent_id) VALUES (?,?);")))
    (sqlite3:execute stmt path parent)
    (sqlite3:finalize! stmt)))