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

Updated project to use URLs instead of String paths #33

Merged
merged 2 commits into from
Aug 28, 2019

Conversation

acecilia
Copy link
Contributor

@acecilia acecilia commented Aug 21, 2019

Fixes #35

The main changes in this PR are:

  • url.path is used now, which returns absolute paths without . or ...
  • Function URL(fileURLWithPath: relativePath, relativeTo: directory) is used now when converting a string to URL. Also, the tests are fixed, and now the path returned for a resource is relative instead of absolute.

@acecilia acecilia force-pushed the feature/print-absolute-path-xcode branch from 67544cc to 7099529 Compare August 21, 2019 21:09
@Jeehut
Copy link
Contributor

Jeehut commented Aug 22, 2019

Looks good to me. Will do some tests sometime later and merge if all looks well. Thanks for the PR!

Copy link
Contributor

@Jeehut Jeehut left a comment

Choose a reason for hiding this comment

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

I think this can be merged. Just one small detail. :)

@Jeehut Jeehut merged commit d7db331 into JamitLabs:stable Aug 28, 2019
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.

When a path contains '.' or '..' the violation does not show properly in Xcode
2 participants