Skip to content
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

Relative file path is not retrieved properly #206

Open
yesh11891 opened this issue Nov 23, 2022 · 2 comments
Open

Relative file path is not retrieved properly #206

yesh11891 opened this issue Nov 23, 2022 · 2 comments

Comments

@yesh11891
Copy link

Existing (InputFile.java):
Path relative = inputFile.toPath().relativize(inputPath.toPath());

Fix (InputFile.java):
Path relative = inputFile.toPath().relativize(inputPath.getParentFile().toPath());

@odsock
Copy link

odsock commented Mar 5, 2023

This issue seems to cause an error message like this for every file I drop in:
[2023-03-05 00:21:16,144] ERROR [CsvSchemaSpoolDir|task-0] Failed to delete input.path sub-directory: /Users/mburnham/Projects/kafka-poc/data/input/data9.TXT (com.github.jcustenborder.kafka.connect.spooldir.InputFile:240)

I see the same error running the test suite as well. I'll try to create a PR to fix it and add a test.

odsock added a commit to odsock/kafka-connect-spooldir that referenced this issue Mar 5, 2023
@lavalex
Copy link

lavalex commented May 19, 2024

Hello,

I'm running into this issue. Was it fixed? Will it be fixed?

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

No branches or pull requests

3 participants