package object nimrod {
  implicit def stringPimps(s : String) = new {
    def %(args : AnyRef*) = String.format(s,args:_*)
    def ls = new java.io.File(s).list()
  }
  def set(key : String, value : String) {
    System.setProperty(key,value)
  }
  def get(key : String) = System.getProperty(key)
}

import java.io.File

package object nimrod {
  implicit def stringPimps(s : String) = new {
    def %(args : AnyRef*) = String.format(s,args:_*)
    def ls = new java.io.File(s).list()
  }
  implicit def filePimps(f : File) = new {
    def ls = f.list()
    def path = f.getCanonicalPath()
  }
  def set(key : String, value : String) {
    System.setProperty(key,value)
  }
  def get(key : String) = System.getProperty(key)
}

Add some pimps for files
Add some pimps for files
