File tree Expand file tree Collapse file tree 1 file changed +43
-1
lines changed Expand file tree Collapse file tree 1 file changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -2621,4 +2621,46 @@ Request packet has the fields:
2621
2621
2. Offset into file to start from, base 16
2622
2622
3. binary-escaped-data to be written
2623
2623
2624
- Response is `F`, followed by the number of bytes written (base 16).
2624
+ Response is `F`, followed by the number of bytes written (base 16).
2625
+
2626
+ ### vFile:MD5
2627
+
2628
+ #### Brief
2629
+
2630
+ Generate an MD5 hash of the file at the given path.
2631
+
2632
+ #### Example
2633
+
2634
+ ```
2635
+ receive: vFile:MD5:2f746d702f61
2636
+ send (success): F,00000000000000001111111111111111
2637
+ send (failure): F,x
2638
+ ```
2639
+
2640
+ Request packet contains the ASCII hex encoded filename.
2641
+
2642
+ If the hash succeeded, the response is `F,` followed by the low 64
2643
+ bits of the result, and finally the high 64 bits of the result. Both are in
2644
+ hex format without a prefix.
2645
+
2646
+ The response is `F,`, followed by `x` if the file did not exist
2647
+ or failed to hash.
2648
+
2649
+ ### vFile:exists
2650
+
2651
+ #### Brief
2652
+
2653
+ Check whether the file at the given path exists.
2654
+
2655
+ #### Example
2656
+
2657
+ ```
2658
+ receive: vFile:exists:2f746d702f61
2659
+ send (exists): F,1
2660
+ send (does not exist): F,0
2661
+ ```
2662
+
2663
+ Request packet contains the ASCII hex encoded filename.
2664
+
2665
+ The response is a return code where 1 means the file exists
2666
+ and 0 means it does not.
You can’t perform that action at this time.
0 commit comments