by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Pathikrit Bhowmick
    @pathikrit
    What does .stored mean?
    /rgb
    @RalfBarkow_twitter
    It should set the compression method to STORED.
    /rgb
    @RalfBarkow_twitter
    val zipFile: File = file.zipTo("test.iirds".toFile).setCompressionMethod(STORED)
    /rgb
    @RalfBarkow_twitter
    According to https://en.wikipedia.org/wiki/Zip_(file_format)#Compression_methods , the .ZIP File Format Specification documents the following compression methods: Store (no compression), ...
    I would like to use .store to specify the compression method for an individual ZIP file entry, and set it to STORED.
    /rgb
    @RalfBarkow_twitter
    Pathikrit Bhowmick
    @pathikrit
    Ok thanks for the pointer. Will take a look
    Philippe Derome
    @phderome
    I am curious to see whether creating tar balls or extracting them is within mandate or roadmap of this library or whether people have pointers for this (other than Process API or haoyi's os API which work well).
    Is there any plan or consideration to include setfacl and getfacl interfaces to handle more complex permission schemes than what chmod allows?
    Pathikrit Bhowmick
    @pathikrit
    @phderome : Is tar balls is definately in scope of this project. Can you file an issue? PRs welcome too :)
    Philippe Derome
    @phderome
    I don't really feel up to the task to contribute to be honest. I'll submit issue. I heard that tar technically is GNU and not completely UNIX portable. I assume that it does not bother you or won't stop you.
    Philippe Derome
    @phderome
    so I see you noticed today it was a duplicate...
    Bloznelis
    @Bloznelis
      def canonicalPath: String =
        toJava.getAbsolutePath
    Hello, is this intended?
    since cannonicalFile is expressed like this:
      def canonicalFile: File =
        toJava.getCanonicalFile.toScala
    Pathikrit Bhowmick
    @pathikrit
    @Bloznelis : yes that is intended
    Sait Sami Kocataş
    @Deliganli

    hi Guys

    when I give a config string like below

    File("~/some/directory")

    it outputs;
    in windows: C:\Users\myuser\projects\myproject\~\some\directory
    in linux : /home/myuser/projects/myproject/~/some/directory

    I would expect it to output;
    in windows: C:\Users\myuser\some\directory
    in linux: /home/myuser/some/directory

    but File.home is pointing to correct directory
    projects/myproject is the classpath of the running application

    am I doing something wrong?

    Pathikrit Bhowmick
    @pathikrit
    @Deliganli : ~ is not a standard construct. Try File.currentWorkingDirectory / "some" / "directory"
    Sait Sami Kocataş
    @Deliganli

    @pathikrit thanks

    I needed to implement something for my usage below

    val PathRegex = """^(?:\~\/)(\.?.*)""".r
    
      implicit class FileAugmentations(file: String) {
    
        def toFile: File = file match {
          case PathRegex(paths) =>
            File.home / paths
          case absolute =>
            File(absolute)
        }
      }

    issue is I will be getting the strings from config files so cannot use code until I reason with the string

    Pathikrit Bhowmick
    @pathikrit
    @Deliganli : Yes it won't work. I don't think it is a issue with better-files but the JDK itself. Try using vanilla java.io.File or java.nio.Path and see if it works there? If yes, let me know ...
    iOgre
    @iOgre_gitlab
    Greetings!
    Why File("zzz").changeExtensionTo("ddd").name gives "zzz" and not "zzz.ddd" ?
    Pathikrit Bhowmick
    @pathikrit
    Because zzz does not have a extension already - I think you are right - this should give zzz.ddd
    vimalaguti
    @vimalaguti
    Hi, I'm generating the scala api documentation for my project, but the better-files api documentation is getting also included. Any idea on how to remove it from my project-doc?
    Pathikrit Bhowmick
    @pathikrit
    @vimalaguti: You mean scaladoc is being generated? If you add better-files as a sbt dependency instead of copying it, it should not happen
    vimalaguti
    @vimalaguti
    better-files is a dependency, when I generate the scaladoc for my project I also found the better-files' one
    Pathikrit Bhowmick
    @pathikrit
    @vimalaguti : can you post your build file and/or file an issue on github with better-files? this is strange
    vimalaguti
    @vimalaguti
    i'll try to open an issue with the above infos, thank you
    Tomas Klubal
    @blondacz
    Hello, can u pls tell me how do I read a zip file with one entry from classpath and map it to string? Thx
    Pathikrit Bhowmick
    @pathikrit
    @blondacz : What do you mean by mapping to String?
    Eric Peters
    @er1c
    @pathikrit got a few PRs put in, not sure what you prefer, bigger or smaller PRs? should I ask you about features before submitting a PR?
    Pathikrit Bhowmick
    @pathikrit
    Smaller PRs and yeah feel free to message me
    Eric Peters
    @er1c
    What's up with the CI, seems like it just keeps running lol
    Eric Peters
    @er1c
    Draft PR for a bunch of IO stuff: pathikrit/better-files#431
    Pathikrit Bhowmick
    @pathikrit
    Great thanks! Will take a look and comment/merge as necessary!
    Eric Peters
    @er1c
    definitely not ready for merge :)
    I have a TODO to add some notes and try and explain the various functionality, the tests are the best resources
    oh the non "big pr" should be fine :)
    Alexander Aumann
    @aumann
    Hi, I've seen that JDK 8 has been removed from tests from 3.9.0 onwards. Does this mean better-files will not work as expected on Java 8 anymore?
    Alexander Aumann
    @aumann
    Ah, ok. I've found pathikrit/better-files#417 -- i.e. it should work I guess?
    Pathikrit Bhowmick
    @pathikrit