Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

open_directory_store when directory does not exist #9

Closed
Anniepoo opened this issue Nov 26, 2019 · 1 comment
Closed

open_directory_store when directory does not exist #9

Anniepoo opened this issue Nov 26, 2019 · 1 comment
Assignees

Comments

@Anniepoo
Copy link
Contributor

We should check for directory existance when opening the store.

On a machine WITHOUT a /tmp/demo directory:

Welcome to SWI-Prolog (threaded, 64 bits, version 8.0.3)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.

For online help and background, visit http://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).

?- open_directory_store('/tmp/demo', Store).
Store = <store_blob> .

?- open_write($Store, Builder).
ERROR: Unhandled exception: terminus_store_rust_error('No such file or directory (os error 2)')

EXPECTED: throw exception from open_directory_store/2
OBSERVED: lazily only flips when the store's written

@matko matko added this to actual-triage in Core dev (old) Mar 5, 2021
@matko matko moved this from triage to Now in Core dev (old) Mar 8, 2021
@spl spl assigned spl and unassigned matko Jul 12, 2021
@spl spl moved this from Next to Now in Core dev (old) Jul 12, 2021
spl added a commit to spl/terminusdb-store that referenced this issue Jul 13, 2021
* Check for existence, permission, and if it's a directory
* See terminusdb/terminus_store_prolog#9
@GavinMendelGleason GavinMendelGleason moved this from Now to Next in Core dev (old) Jul 26, 2021
@spl spl removed this from Next in Core dev (old) Jan 17, 2022
@spl
Copy link
Contributor

spl commented Jun 7, 2022

See #45.

@spl spl closed this as not planned Won't fix, can't repro, duplicate, stale Jun 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants