-
Notifications
You must be signed in to change notification settings - Fork 875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filestorage roadmap #1208
Filestorage roadmap #1208
Conversation
Thank you very much for the cleanup here @diegohce Now we probably just need to figure out the permissions on Windows for file writing. Excellent progress, I will try to take a look sometime today. |
Please note I changed the branch for this PR to |
Did I mistake the branch... |
Damn! I'm so eager for this to get to the new release! |
Would "/tmp" be a factible directory?
…On Wed, Aug 28, 2024 at 4:44 AM Ron Evans ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In persistence_test.go
<#1208 (comment)>:
> @@ -0,0 +1,54 @@
+package gocv
+
+import (
+ "testing"
+)
+
+func TestFileStorage(t *testing.T) {
+
+ fs := NewFileStorageWithParams("testdata/filestorage", FileStorageModeWrite|FileStorageModeFormatJson, "utf-8")
Perhaps writing the file into a temp directory would be better and would
pass on Windows?
Untested:
pth := filepath.Join(os.TempDir(), "filestorage.json")fs := NewFileStorageWithParams(pth, FileStorageModeWrite|FileStorageModeFormatJson, "utf-8")
—
Reply to this email directly, view it on GitHub
<#1208 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADJCC6H6F3O7VOTIW6P5R73ZTV5XRAVCNFSM6AAAAABNFF2CQSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDENRVGQZDONZYGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
sorry, I missed your code sample. I will try with that right now
…On Wed, Aug 28, 2024 at 5:10 PM Diego Cena ***@***.***> wrote:
Would "/tmp" be a factible directory?
On Wed, Aug 28, 2024 at 4:44 AM Ron Evans ***@***.***>
wrote:
> ***@***.**** commented on this pull request.
> ------------------------------
>
> In persistence_test.go
> <#1208 (comment)>:
>
> > @@ -0,0 +1,54 @@
> +package gocv
> +
> +import (
> + "testing"
> +)
> +
> +func TestFileStorage(t *testing.T) {
> +
> + fs := NewFileStorageWithParams("testdata/filestorage", FileStorageModeWrite|FileStorageModeFormatJson, "utf-8")
>
> Perhaps writing the file into a temp directory would be better and would
> pass on Windows?
>
> Untested:
>
> pth := filepath.Join(os.TempDir(), "filestorage.json")fs := NewFileStorageWithParams(pth, FileStorageModeWrite|FileStorageModeFormatJson, "utf-8")
>
> —
> Reply to this email directly, view it on GitHub
> <#1208 (review)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADJCC6H6F3O7VOTIW6P5R73ZTV5XRAVCNFSM6AAAAABNFF2CQSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDENRVGQZDONZYGM>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Looking good now @diegohce thank you very much for adding this set of long-needed features! Now squash/merging. |
clean commits