Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-core-dev] Creating new file without using java.io.File

Hello,

I am trying to abstractive a remote file store implementation and I am stuck in the following scenario:

            IFileStore fs = EFS.getStore(uri);
            fs = fs.getFileStore(relPath);
            IFileInfo f = fs.fetchInfo();
            if (!f.exists()){
                 // create this file
            }
Is there a way of creating a new file without using java.io.File.createNewFile() ?  This fails in my case since the URI that this file was created on is not a local one (does not start with "file://").
Are there any recommended ways of creating a new file just by using the interfaces IFileInfo and/ord IFileStore (eg. fileStore.createNewFile() method)?

Thank you,
Ioana Grigoropol


Back to the top