Yup, I find it awkward as well, but it occurred to me (I vaguely remember
hearing since discussion about that) to import what you need where you need
it, as it has a toll on memory.

Let me know how you want to do it going forward.
 On Sep 14, 2013 8:57 AM, "Josh Albrecht" <notifications@github.com> wrote:

> In src/main/scala/com/codexica/s3crate/filetree/local/LinuxFileTree.scala:
>
> > @@ -46,7 +127,19 @@ class LinuxFileTree(baseFolder: File, ec: ExecutionContext) extends LocalFileTre
> >     * @throws InaccessibleDataError wrapping all other non fatal errors
> >     * @return Return the appropriate FilePathType (folder, file, or symlink)
> >     */
> > -  def getPermissions(file: File): Set[PosixFilePermission] = throw new NotImplementedError()
> > +  def getPermissions(file: File): Set[PosixFilePermission] = {
> > +    //get Path from File
> > +    val path = getPath(file)
> > +    try{
> > +      //to convert the Java set to Scala set (using asScala)
> > +      import collection.JavaConverters._
>
> I have a habit of importing these at the top level of the file as soon as
> I need it once. I can't decide whether I like being totally explicit about
> every usage of these converters, or if I just like assuming that they exist
> everywhere...
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/joshalbrecht/s3crate/pull/1/files#r6364106>
> .
>