Skip to content

enhancement(file sink): Automatically create missing directories#1094

Merged
LucioFranco merged 7 commits intomasterfrom
lucio/create-dir-file-sink
Nov 4, 2019
Merged

enhancement(file sink): Automatically create missing directories#1094
LucioFranco merged 7 commits intomasterfrom
lucio/create-dir-file-sink

Conversation

@LucioFranco
Copy link
Copy Markdown
Contributor

Closes #1043

Signed-off-by: Lucio Franco luciofranco14@gmail.com

Closes #1043

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
@binarylogic binarylogic changed the title feat(file sink): Automatically create missing directories enhancement(file sink): Automatically create missing directories Oct 27, 2019
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
@LucioFranco
Copy link
Copy Markdown
Contributor Author

@lukesteensen r?

Copy link
Copy Markdown
Member

@lukesteensen lukesteensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the tests now all cover the case where neither the directory nor the file exists before the sink starts. It'd be nice to have tests documenting our behavior in each of the possible combinations (i.e. existing directory and file, existing directory and nonexistent file, nonexistent directory).

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
@LucioFranco
Copy link
Copy Markdown
Contributor Author

@lukesteensen "existing directory and file" is covered by each test anyways with how we reopen files to test that we appened and open. I've added a test where we just need to create the file and the dir already exists. So I think that covers all the cases.

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
@LucioFranco LucioFranco merged commit 3b3c824 into master Nov 4, 2019
@LucioFranco LucioFranco deleted the lucio/create-dir-file-sink branch November 4, 2019 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatic directory creation with file sink

2 participants