public static boolean recycle(File file){
  if (OSUtils.isWindows() && isLoaded) {
    String path=null;
    try {
      path=file.getCanonicalPath();
    }
 catch (    IOException err) {
      LOG.error("IOException",err);
      path=file.getAbsolutePath();
    }
    return recycleNative(path);
  }
 else {
    return false;
  }
}

public static boolean recycle ( File file ) { if ( OSUtils . isWindows ( ) && isLoaded ) { String path = null ; try { path = file . getCanonicalPath ( ) ; } catch ( IOException err ) { LOG . error ( "IOException" , err ) ; path = file . getAbsolutePath ( ) ; } return recycleNative ( path ) ; } else { return false ; } }
moves a file to the platform - specific trash can or recycle bin .
