Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CB6AC17AAF for ; Sat, 25 Jul 2015 15:13:41 +0000 (UTC) Received: (qmail 97754 invoked by uid 500); 25 Jul 2015 15:13:40 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 97621 invoked by uid 500); 25 Jul 2015 15:13:40 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 97609 invoked by uid 99); 25 Jul 2015 15:13:40 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jul 2015 15:13:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 208D0D7915 for ; Sat, 25 Jul 2015 15:13:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id heCWMfLyxHJA for ; Sat, 25 Jul 2015 15:13:39 +0000 (UTC) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id DC84020772 for ; Sat, 25 Jul 2015 15:13:38 +0000 (UTC) Received: by lblf12 with SMTP id f12so30405137lbl.2 for ; Sat, 25 Jul 2015 08:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=tGoFmRukcCsJoRghBTvV7sRSo9QIzou1Aw+qOWwemfY=; b=UpIZL7id+HNuGnYok3MRD7O2jnT8KriXwQDsonZN0QF/+LqS3bnwZ7dI+YliVD1GmK Ff16v53YjuU+db4pCsW3Mynya4mvO4oOc2REVlS/GA92Z78XNaubGMpPtxHbMCGkjI5c KhvOPpFYiysk5sLwHiKftAuRIWIAwV6Tv0iqLRX2ls22JYp9jPGmuxoF9Xre9PsDvIb3 5tOLGfgcsnV7G80WPkYQ4bDK2GPyxGiDhtKZSmGgF5LKb4sweIZft/e45bzUyyfamKVy 4e7cHb7eu6lkWQo8idmru6M1W4I/o2gnKCa0CBPgnppKFVy3W+7cg1j3eBB7XM9LMAQn 5KjA== X-Received: by 10.112.123.69 with SMTP id ly5mr18915654lbb.57.1437837212224; Sat, 25 Jul 2015 08:13:32 -0700 (PDT) Received: from [127.0.0.1] (128-68-58-152.broadband.corbina.ru. [128.68.58.152]) by smtp.googlemail.com with ESMTPSA id h3sm2633503lbj.19.2015.07.25.08.13.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Jul 2015 08:13:31 -0700 (PDT) To: Commons Users List From: Alexander Nozik Subject: [VFS2] What is the best way to convert regular FIle to FileObject Message-ID: <55B3A78A.80605@gmail.com> Date: Sat, 25 Jul 2015 18:13:14 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 150725-0, 07/25/2015), Outbound message X-Antivirus-Status: Clean Hello, I've got a program, part of which is based on regular local file system and part is file system independent. So sometimes I need to convert regular local Files to VFS FileObjects. What is the simplest way to do that? It should be very simple, but I haven't found it in the documentations. With best regards, Alexander Nozik. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org