[Filesystem] fix createFile
authorPawel Kaczmarek <p.kaczmarek3@samsung.com>
Thu, 26 Feb 2015 11:29:45 +0000 (12:29 +0100)
committerPawel Sikorski <p.sikorski@samsung.com>
Fri, 27 Feb 2015 08:33:19 +0000 (17:33 +0900)
Change-Id: I0b21c7e471df43c3455ea2a76479ac3d27d594eb
Signed-off-by: Pawel Kaczmarek <p.kaczmarek3@samsung.com>
src/filesystem/js/file.js

index 1236537895db463b93907871d679c544d42dae71..8b66fe5e9a356e02f7aa3469a779061c0c4b51a6 100644 (file)
@@ -349,7 +349,7 @@ File.prototype.createFile = function(relativeFilePath) {
         'File object which call this method is not directory');
   }
 
-  if (!this.f_isCorrectRelativePath(args.relativeFilePath) || this.mode === 'r') {
+  if (!commonFS_.f_isCorrectRelativePath(args.relativeFilePath) || this.mode === 'r') {
     throw new tizen.WebAPIException(tizen.WebAPIException.INVALID_VALUES_ERR,
         'Invalid path or readonly acces');
   }