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

losing information about the absolute path of files #30

Open
simoneggensch opened this issue Jan 19, 2023 · 2 comments
Open

losing information about the absolute path of files #30

simoneggensch opened this issue Jan 19, 2023 · 2 comments

Comments

@simoneggensch
Copy link

simoneggensch commented Jan 19, 2023

Hi, I don't know if this behaviour is intended or not, but by asking parsed.path we lose the information about the parsed.netloc. Either I used your library in a wrong way, or I am missing something. But in any case, the function read_url was not able to find my files, even though I gave it the whole path.

yield from self.read_files(parsed.path)

Thank you for the package.
Simon

@dpetzold
Copy link
Owner

Hello Simon,

What are you using for netloc? Currently only file and s3 are supported:

https://github.com/dpetzold/aws-log-parser/blob/master/aws_log_parser/interface.py#L151

Best,
Derrick

@simoneggensch
Copy link
Author

simoneggensch commented Jan 20, 2023

Hi Derrick,

I used the file mode.

thank you for your response. I think I realised what I missed. When I use this on a windows environment, the global path starts with C:, which needs to be removed. However, when I call the method in a WSL, the the global path starts with /mnt/c/, and removing the /mnt makes it such that the files can't be found anymore. I hope my explanation makes some sense.

Best,
Simon

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

2 participants