We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be cool if we could do the same as:
def apply(relativePath: RelPath): Seq[Array[Byte]] = val fixtureDirPath = os.resource / "fixtures" / relativePath val uri = getClass.getClassLoader.getResource(fixtureDirPath.segments.mkString("/")).toURI val path = if uri.getScheme == "jar" then FileSystems.newFileSystem(uri, Map.empty[String, Any].asJava).getPath(fixtureDirPath.toString) else Paths.get(uri) Files .list(path) .iterator() .asScala .map(path => os.read.bytes(os.Path(path))) .toSeq
Thanks
The text was updated successfully, but these errors were encountered:
@joan38 could you explain what it is you are trying to do?
Sorry, something went wrong.
It sounds like with os-lib we cannot list or walk a folder in resources. In this example I'm even walking into jars that are in resources.
No branches or pull requests
It would be cool if we could do the same as:
Thanks
The text was updated successfully, but these errors were encountered: