cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-339) Able to create directory/file without parent directory
Date Fri, 09 Nov 2012 01:04:12 GMT

     [ https://issues.apache.org/jira/browse/CB-339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jesse MacFadyen resolved CB-339.
--------------------------------

    Resolution: Fixed

Commit is here:
https://github.com/purplecabbage/incubator-cordova-wp7/commit/79792880b12574dda080c5f24c5f5bf8f3223ce6
    

Here is a brief test script you can use to verify for yourself...

{code:javascript} 
    window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, onRequestFileSystemSuccess, null);

        function onRequestFileSystemSuccess(fileSystem) {
            var entry = fileSystem.root;
            //entry.getFile("example/file/boob/tube/scooby.txt", { create: true, exclusive:
false }, onGetDirectorySuccess, onGetDirectoryFail);
            entry.getDirectory("example/file/boob/tube", { create: true, exclusive: false
}, onGetDirectorySuccess, onGetDirectoryFail);
        }

        function onGetDirectorySuccess(dir) {
            console.log("Created dir " + dir.fullPath);
        }

        function onGetDirectoryFail(error) {
            console.log("Error creating directory " + error.code);
        }
{code}
                
> Able to create directory/file without parent directory
> ------------------------------------------------------
>
>                 Key: CB-339
>                 URL: https://issues.apache.org/jira/browse/CB-339
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP7
>    Affects Versions: 1.3.0
>         Environment: Windows File system
>            Reporter: Babu Muralidharan
>            Assignee: Jesse MacFadyen
>            Priority: Minor
>             Fix For: 2.3.0
>
>
> 1. Refering to getDirectory() method, user could create a directory whose parent directory
does not exist.This is not inline with Phonegap documentation.
> 2. Refering to  getFile() method,user could create a file whose parent directory does
not exist. This is not inline with Phonegap documentation

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message