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

Fix FileHandler file path resolution #20

Merged
merged 1 commit into from
Feb 1, 2017
Merged

Conversation

frajaona
Copy link
Contributor

@frajaona frajaona commented Feb 1, 2017

The latest commits break the FileHandler file path resolution.

Currently, FileHandler initializer always returns nil because file path is created using fileURL.absoluteString instead of fileURL.path.

In fact, for a local file "mylog.txt" located in /tmp, path will be "file://tmp/mylog.txt" if absoluteString is used. Thus FileManager.createFile() will fail with this path, because the function expects a regular path like "/tmp/mylog.txt"

Copy link
Owner

@nilsvu nilsvu left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this :)

@nilsvu nilsvu merged commit bfcd351 into nilsvu:master Feb 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants