You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ld...@apache.org on 2014/10/15 21:14:36 UTC

[1/7] git commit: CB-7700 cordova-plugin-file documentation translation: cordova-plugin-file

Repository: cordova-plugin-file
Updated Branches:
  refs/heads/master ab9ff4d8d -> 8ef744d28


CB-7700 cordova-plugin-file documentation translation: cordova-plugin-file


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/14376405
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/14376405
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/14376405

Branch: refs/heads/master
Commit: 143764054690ecbbf89769626ce08d841c9fc6af
Parents: 0027882
Author: Victor Sosa <vi...@mx1.ibm.com>
Authored: Fri Oct 10 11:46:19 2014 -0500
Committer: Victor Sosa <vi...@mx1.ibm.com>
Committed: Fri Oct 10 11:46:19 2014 -0500

----------------------------------------------------------------------
 doc/de/index.md | 6 +++---
 doc/es/index.md | 6 +++---
 doc/fr/index.md | 6 +++---
 doc/it/index.md | 6 +++---
 doc/ja/index.md | 6 +++---
 doc/ko/index.md | 6 +++---
 doc/pl/index.md | 6 +++---
 doc/ru/index.md | 6 +++---
 doc/zh/index.md | 6 +++---
 9 files changed, 27 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/14376405/doc/de/index.md
----------------------------------------------------------------------
diff --git a/doc/de/index.md b/doc/de/index.md
index dfcb9ff..be82fbf 100644
--- a/doc/de/index.md
+++ b/doc/de/index.md
@@ -96,14 +96,14 @@ Obwohl technisch ein Implementierungsdetail, kann es sehr hilfreich zu wissen wi
 |    `Library`                                 | -                           | Bibliothek            | R/w  |     Ja      |    Nein    | Ja?  |   Ja    |
 |       `NoCloud/`                             | dataDirectory               | Bibliothek-nosync     | R/w  |     Ja      |    Nein    | Nein |   Ja    |
 |       `Cloud/`                               | syncedDataDirectory         | -                     | R/w  |     Ja      |    Nein    |  Ja  |   Ja    |
-|       `Caches/`                              | cacheDirectory              | Cache                 | R/w  |    Ja *     | Ja \* * *| | Nein |   Ja    |
-|    `tmp/`                                    | tempDirectory               | -                     | R/w  |  Nicht * *  | Ja \* * *| | Nein |   Ja    |
+|       `Caches/`                              | cacheDirectory              | Cache                 | R/w  |    Ja *     | Ja * * *| | Nein |   Ja    |
+|    `tmp/`                                    | tempDirectory               | -                     | R/w  |  Nicht * *  | Ja * * *| | Nein |   Ja    |
 
 * Dateien werden hinweg app Neustarts und Upgrades beibehalten, aber dieses Verzeichnis kann gelöscht werden, wenn das OS begehrt. Ihre Anwendung sollte in der Lage, Inhalte zu erschaffen, die möglicherweise gelöscht werden.
 
 * *-Dateien kann über app-Neustarts beizubehalten, aber verlasse dich nicht auf dieses Verhalten. Dateien sind nicht unbedingt Aktuelles beibehalten. Ihre Anwendung sollte Dateien aus diesem Verzeichnis entfernen, wenn es gilt, diese Dateien werden entfernt, da das OS nicht wann (oder auch wenn) garantiert.
 
-\* * *| The OS kann den Inhalt dieses Verzeichnisses löschen, wenn es sich anfühlt, ist es erforderlich, aber verlassen Sie sich nicht dazu. Sie sollten dieses Verzeichnis entsprechend Ihrer Anwendung deaktivieren.
+* * *| The OS kann den Inhalt dieses Verzeichnisses löschen, wenn es sich anfühlt, ist es erforderlich, aber verlassen Sie sich nicht dazu. Sie sollten dieses Verzeichnis entsprechend Ihrer Anwendung deaktivieren.
 
 ### Android File System-Layout
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/14376405/doc/es/index.md
----------------------------------------------------------------------
diff --git a/doc/es/index.md b/doc/es/index.md
index a4b619e..b2fec9f 100644
--- a/doc/es/index.md
+++ b/doc/es/index.md
@@ -96,14 +96,14 @@ Aunque técnicamente un detalle de la implementación, puede ser muy útil saber
 |    `Library`                                 | -                           | Biblioteca            |  r/w  |      Sí       |     No     |      ¿Sí?      |   Sí    |
 |       `NoCloud/`                             | dataDirectory               | Biblioteca-nosync     |  r/w  |      Sí       |     No     |       No       |   Sí    |
 |       `Cloud/`                               | syncedDataDirectory         | -                     |  r/w  |      Sí       |     No     |       Sí       |   Sí    |
-|       `Caches/`                              | cacheDirectory              | caché                 |  r/w  |     Sí *      | Si \* * *| |       No       |   Sí    |
-|    `tmp/`                                    | tempDirectory               | -                     |  r/w  |    No * *     | Si \* * *| |       No       |   Sí    |
+|       `Caches/`                              | cacheDirectory              | caché                 |  r/w  |     Sí *      | Si * * *| |       No       |   Sí    |
+|    `tmp/`                                    | tempDirectory               | -                     |  r/w  |    No * *     | Si * * *| |       No       |   Sí    |
 
 * Archivos persisten a través de la aplicación se reinicia y actualizaciones, pero este directorio puede ser despejó cuando el OS desea. Su aplicación debe ser capaz de recrear cualquier contenido que puede ser eliminado.
 
 * * Archivos pueden persistir a través de la aplicación se reinicia, pero no confiar en este comportamiento. Los archivos no se garantizan que persisten a través de actualizaciones. Su aplicación debe eliminar los archivos de este directorio cuando es aplicable, como el sistema operativo no garantiza cuando (o incluso si) estos archivos se quitan.
 
-\* * *| OS la puede borrar el contenido de este directorio cuando se siente que es necesario, pero no dependen de éste. Debe borrar este directorio según sea apropiado para su aplicación.
+* * *| OS la puede borrar el contenido de este directorio cuando se siente que es necesario, pero no dependen de éste. Debe borrar este directorio según sea apropiado para su aplicación.
 
 ### Disposición del sistema Android File
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/14376405/doc/fr/index.md
----------------------------------------------------------------------
diff --git a/doc/fr/index.md b/doc/fr/index.md
index ea7cec3..5a82b94 100644
--- a/doc/fr/index.md
+++ b/doc/fr/index.md
@@ -96,14 +96,14 @@ Bien que techniquement un détail d'implémentation, il peut être très utile d
 |    `Library`                                 | -                           | Bibliothèque          |  r/w  |      Oui      |     Non     | Oui ? |  Oui  |
 |       `NoCloud/`                             | dataDirectory               | Bibliothèque-nosync   |  r/w  |      Oui      |     Non     |  Non  |  Oui  |
 |       `Cloud/`                               | syncedDataDirectory         | -                     |  r/w  |      Oui      |     Non     |  Oui  |  Oui  |
-|       `Caches/`                              | cacheDirectory              | cache                 |  r/w  |     Oui *     | Oui \* * *| |  Non  |  Oui  |
-|    `tmp/`                                    | tempDirectory               | -                     |  r/w  |    Ne * *     | Oui \* * *| |  Non  |  Oui  |
+|       `Caches/`                              | cacheDirectory              | cache                 |  r/w  |     Oui *     | Oui * * *| |  Non  |  Oui  |
+|    `tmp/`                                    | tempDirectory               | -                     |  r/w  |    Ne * *     | Oui * * *| |  Non  |  Oui  |
 
 * Fichiers persistent à travers les redémarrages de l'application et mises à niveau, mais ce répertoire peut être effacé à chaque fois que les désirs de l'OS. Votre application doit être en mesure de recréer tout contenu qui pourrait être supprimé.
 
 * * Fichiers peuvent persister redémarrages de l'application, mais ne vous fiez pas ce comportement. Les fichiers ne sont pas garantis à persister dans l'ensemble de mises à jour. Votre application doit supprimer les fichiers de ce répertoire lorsqu'elle s'applique, comme le système d'exploitation ne garantit pas quand (ou même si) ces fichiers sont supprimés.
 
-\* * *| L'OS peut effacer le contenu de ce répertoire chaque fois qu'il se sent il est nécessaire, mais ne comptez pas là-dessus. Vous devez supprimer ce répertoire comme approprié pour votre application.
+* * *| L'OS peut effacer le contenu de ce répertoire chaque fois qu'il se sent il est nécessaire, mais ne comptez pas là-dessus. Vous devez supprimer ce répertoire comme approprié pour votre application.
 
 ### Agencement de système de fichiers Android
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/14376405/doc/it/index.md
----------------------------------------------------------------------
diff --git a/doc/it/index.md b/doc/it/index.md
index 4ed40f2..c2bedf5 100644
--- a/doc/it/index.md
+++ b/doc/it/index.md
@@ -96,14 +96,14 @@ Anche se tecnicamente un dettaglio di implementazione, può essere molto utile p
 |    `Library`                                 | -                           | libreria              | r/w  |      Sì      |     No      |       Sì?        |   Sì    |
 |       `NoCloud/`                             | dataDirectory               | nosync-libreria       | r/w  |      Sì      |     No      |        No        |   Sì    |
 |       `Cloud/`                               | syncedDataDirectory         | -                     | r/w  |      Sì      |     No      |        Sì        |   Sì    |
-|       `Caches/`                              | cacheDirectory              | cache                 | r/w  |     Sì *     | Sì \* * *|  |        No        |   Sì    |
-|    `tmp/`                                    | tempDirectory               | -                     | r/w  |    No * *    | Sì \* * *|  |        No        |   Sì    |
+|       `Caches/`                              | cacheDirectory              | cache                 | r/w  |     Sì *     | Sì * * *|  |        No        |   Sì    |
+|    `tmp/`                                    | tempDirectory               | -                     | r/w  |    No * *    | Sì * * *|  |        No        |   Sì    |
 
 * File persistono attraverso riavvii app e aggiornamenti, ma questa directory può essere azzerata ogni volta che desideri l'OS. L'app dovrebbe essere in grado di ricreare qualsiasi contenuto che potrebbe essere eliminato.
 
 * * File può persistere attraverso app riavvii, ma non fare affidamento su questo comportamento. I file non sono garantiti a persistere attraverso gli aggiornamenti. L'app deve rimuovere i file dalla directory quando è applicabile, come il sistema operativo non garantisce quando (o anche se) questi file vengono rimossi.
 
-\* * *| Il sistema operativo può cancellare il contenuto di questa directory ogni volta che si sente è necessario, ma non fare affidamento su questo. Si dovrebbe cancellare questa directory come adatto per l'applicazione.
+* * *| Il sistema operativo può cancellare il contenuto di questa directory ogni volta che si sente è necessario, ma non fare affidamento su questo. Si dovrebbe cancellare questa directory come adatto per l'applicazione.
 
 ### Layout sistema Android File
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/14376405/doc/ja/index.md
----------------------------------------------------------------------
diff --git a/doc/ja/index.md b/doc/ja/index.md
index 9cb4fd0..16e9621 100644
--- a/doc/ja/index.md
+++ b/doc/ja/index.md
@@ -96,14 +96,14 @@ V1.2.0、現在重要なファイル システム ディレクトリへの Url 
 |    `Library`                         | -                           | ライブラリ                 |   r/w    |    はい    |    いいえ     | はいですか? |   はい   |
 |       `NoCloud/`                     | dataDirectory               | ライブラリ nosync          |   r/w    |    はい    |    いいえ     |  いいえ   |   はい   |
 |       `Cloud/`                       | syncedDataDirectory         | -                     |   r/w    |    はい    |    いいえ     |   はい   |   はい   |
-|       `Caches/`                      | cacheDirectory              | キャッシュ                 |   r/w    |   はい *   | はい \* * *| |  いいえ   |   はい   |
-|    `tmp/`                            | tempDirectory               | -                     |   r/w    | いいえ * *  | はい \* * *| |  いいえ   |   はい   |
+|       `Caches/`                      | cacheDirectory              | キャッシュ                 |   r/w    |   はい *   | はい * * *| |  いいえ   |   はい   |
+|    `tmp/`                            | tempDirectory               | -                     |   r/w    | いいえ * *  | はい * * *| |  いいえ   |   はい   |
 
 * アプリを再起動し、アップグレードとの間でファイルを保持が、OS を希望するたびにこのディレクトリを削除することができます。アプリを削除可能性があります任意のコンテンツを再作成することができる必要があります。
 
 * * ファイル アプリケーション再起動を渡って続くことがありますが、この動作に依存しないでください。 ファイルは、更新を維持するは保証されません。 アプリが該当する場合このディレクトリからファイルを削除する必要があります、これらのファイルが削除されるとき (または場合でも)、OS は保証しません。
 
-\* * *| OS はそれ、必要だと感じているときにこのディレクトリの内容を消去可能性がありますが、これに依存しません。 この適切なディレクトリに、アプリケーションをオフにする必要があります。
+* * *| OS はそれ、必要だと感じているときにこのディレクトリの内容を消去可能性がありますが、これに依存しません。 この適切なディレクトリに、アプリケーションをオフにする必要があります。
 
 ### 人造人間ファイル ・ システム ・ レイアウト
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/14376405/doc/ko/index.md
----------------------------------------------------------------------
diff --git a/doc/ko/index.md b/doc/ko/index.md
index 411efc7..f34c00e 100644
--- a/doc/ko/index.md
+++ b/doc/ko/index.md
@@ -96,14 +96,14 @@ V1.2.0, 현재 중요 한 파일 시스템 디렉터리에 Url도 제공 됩니
 |    `Library`                         | -                           | 라이브러리                 | r/w  |   예    |    없음     | 그래? | 예  |
 |       `NoCloud/`                     | dataDirectory               | 라이브러리 nosync          | r/w  |   예    |    없음     | 없음  | 예  |
 |       `Cloud/`                       | syncedDataDirectory         | -                     | r/w  |   예    |    없음     |  예  | 예  |
-|       `Caches/`                      | cacheDirectory              | 캐시                    | r/w  |  예 *   | 예 \* * *| | 없음  | 예  |
-|    `tmp/`                            | tempDirectory               | -                     | r/w  | 아니 * * | 예 \* * *| | 없음  | 예  |
+|       `Caches/`                      | cacheDirectory              | 캐시                    | r/w  |  예 *   | 예 * * *| | 없음  | 예  |
+|    `tmp/`                            | tempDirectory               | -                     | r/w  | 아니 * * | 예 * * *| | 없음  | 예  |
 
 * 파일 응용 프로그램 다시 시작 및 업그레이드, 유지 하지만 OS 욕망 언제 든 지이 디렉터리를 지울 수 있습니다. 앱 삭제 될 수 있습니다 모든 콘텐츠를 다시 만들 수 있어야 합니다.
 
 * * 파일 응용 프로그램 다시 시작에서 지속 될 수 있습니다 하지만이 동작에 의존 하지 마십시오. 파일 여러 업데이트를 보장 하지 않습니다. 때 해당 앱이이 디렉터리에서 파일을 제거 해야, 이러한 파일을 제거할 때 (또는 경우에도) 운영 체제 보증 하지 않습니다으로.
 
-\* * *| OS 그것이 필요를 느낀다 언제 든 지이 디렉터리의 내용을 취소 될 수 있습니다 하지만 이것에 의존 하지 마십시오. 이 디렉터리를 응용 프로그램에 대 한 적절 한 선택을 취소 해야 합니다.
+* * *| OS 그것이 필요를 느낀다 언제 든 지이 디렉터리의 내용을 취소 될 수 있습니다 하지만 이것에 의존 하지 마십시오. 이 디렉터리를 응용 프로그램에 대 한 적절 한 선택을 취소 해야 합니다.
 
 ### 안 드 로이드 파일 시스템 레이아웃
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/14376405/doc/pl/index.md
----------------------------------------------------------------------
diff --git a/doc/pl/index.md b/doc/pl/index.md
index 6356574..e00b33c 100644
--- a/doc/pl/index.md
+++ b/doc/pl/index.md
@@ -96,14 +96,14 @@ Chociaż technicznie implementacyjnym, może być bardzo przydatne wiedzieć, ja
 |    `Library`                                 | -                           | Biblioteka            | r/w  |   Tak   |     Nr      |      Tak?      |   Tak    |
 |       `NoCloud/`                             | dataDirectory               | Biblioteka nosync     | r/w  |   Tak   |     Nr      |       Nr       |   Tak    |
 |       `Cloud/`                               | syncedDataDirectory         | -                     | r/w  |   Tak   |     Nr      |      Tak       |   Tak    |
-|       `Caches/`                              | cacheDirectory              | pamięci podręcznej    | r/w  |  Tak *  | Tak \* * *| |       Nr       |   Tak    |
-|    `tmp/`                                    | tempDirectory               | -                     | r/w  | Nie * * | Tak \* * *| |       Nr       |   Tak    |
+|       `Caches/`                              | cacheDirectory              | pamięci podręcznej    | r/w  |  Tak *  | Tak * * *| |       Nr       |   Tak    |
+|    `tmp/`                                    | tempDirectory               | -                     | r/w  | Nie * * | Tak * * *| |       Nr       |   Tak    |
 
 * Pliki utrzymywały aplikacja zostanie ponownie uruchomiony i uaktualnienia, ale w tym katalogu mogą być rozliczone, gdy OS pragnienia. Aplikacji powinny być w stanie odtworzyć zawartość, która może być usunięta.
 
 * * Plików może utrzymywać się po ponownym uruchomieniu aplikacji, ale nie opierają się na tym zachowaniu. Pliki nie są gwarantowane w aktualizacji. Aplikacji należy usunąć pliki z tego katalogu, gdy ma to zastosowanie, ponieważ system operacyjny nie gwarantuje Kiedy (lub nawet jeśli) te pliki zostaną usunięte.
 
-\* * *| System operacyjny może wyczyścić zawartość w tym katalogu, gdy czuje, że jest to konieczne, ale nie powoływać się na to. Należy wyczyścić ten katalog jako odpowiednie dla aplikacji.
+* * *| System operacyjny może wyczyścić zawartość w tym katalogu, gdy czuje, że jest to konieczne, ale nie powoływać się na to. Należy wyczyścić ten katalog jako odpowiednie dla aplikacji.
 
 ### Układ systemu Android plików
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/14376405/doc/ru/index.md
----------------------------------------------------------------------
diff --git a/doc/ru/index.md b/doc/ru/index.md
index 123a598..2a23e69 100644
--- a/doc/ru/index.md
+++ b/doc/ru/index.md
@@ -96,14 +96,14 @@
 |    `Library`                                   | -                           | Библиотека            | r/w  |    Да    |    Нет     |      Да?      |   Да    |
 |       `NoCloud/`                               | dataDirectory               | Библиотека nosync     | r/w  |    Да    |    Нет     |      Нет      |   Да    |
 |       `Cloud/`                                 | syncedDataDirectory         | -                     | r/w  |    Да    |    Нет     |      Да       |   Да    |
-|       `Caches/`                                | cacheDirectory              | кэш                   | r/w  |   Да *   | Да \* * *| |      Нет      |   Да    |
-|    `tmp/`                                      | tempDirectory               | -                     | r/w  |  Не * *  | Да \* * *| |      Нет      |   Да    |
+|       `Caches/`                                | cacheDirectory              | кэш                   | r/w  |   Да *   | Да * * *| |      Нет      |   Да    |
+|    `tmp/`                                      | tempDirectory               | -                     | r/w  |  Не * *  | Да * * *| |      Нет      |   Да    |
 
 * Файлы сохраняются приложения перезагрузки и обновления, но этот каталог может быть очищен, когда ОС желаний. Ваше приложение должно иметь возможность воссоздать любое содержание, которое может быть удалено.
 
 * * Файлы могут сохраняться перезагрузками app, но не полагайтесь на это поведение. Для продолжения обновления файлов не гарантируется. Приложение должно удалить файлы из этого каталога, когда это применимо, как операционная система не гарантирует когда (или даже если) эти файлы будут удалены.
 
-\* * *| ОС может очистить содержимое этого каталога, когда он считает это необходимым, но не полагайтесь на это. Необходимо снять этот каталог в зависимости от вашего приложения.
+* * *| ОС может очистить содержимое этого каталога, когда он считает это необходимым, но не полагайтесь на это. Необходимо снять этот каталог в зависимости от вашего приложения.
 
 ### Расположения Android файловой системы
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/14376405/doc/zh/index.md
----------------------------------------------------------------------
diff --git a/doc/zh/index.md b/doc/zh/index.md
index ddf8d2b..4d2077a 100644
--- a/doc/zh/index.md
+++ b/doc/zh/index.md
@@ -103,14 +103,14 @@
 |    `Library`                    | -                           | 圖書館                   |  r/w   |   是啊   |     無      | 是嗎? | 是啊 |
 |       `NoCloud/`                | dataDirectory               | 圖書館 nosync            |  r/w   |   是啊   |     無      |  無  | 是啊 |
 |       `Cloud/`                  | syncedDataDirectory         | -                     |  r/w   |   是啊   |     無      | 是啊  | 是啊 |
-|       `Caches/`                 | cacheDirectory              | 快取記憶體                 |  r/w   |  是啊 *  | 是的 \* * *| |  無  | 是啊 |
-|    `tmp/`                       | tempDirectory               | -                     |  r/w   | 沒有 * * | 是的 \* * *| |  無  | 是啊 |
+|       `Caches/`                 | cacheDirectory              | 快取記憶體                 |  r/w   |  是啊 *  | 是的 * * *| |  無  | 是啊 |
+|    `tmp/`                       | tempDirectory               | -                     |  r/w   | 沒有 * * | 是的 * * *| |  無  | 是啊 |
 
 * 檔堅持跨應用程式重新開機和升級,但是每當 OS 的欲望,可以清除此目錄。您的應用程式應該能夠重新創建任何內容可能會被刪除。
 
 * * 檔可能會持續整個應用程式重新開機,但不是依賴于這種行為。 不保證檔在更新之間持續存在。 您的應用程式應該從這個目錄刪除檔,在適當的時候,作為作業系統並不能保證時 (或即使) 中刪除這些檔。
 
-\* * *| OS 可能會清除此目錄的內容,每當它感覺它是必要的但不是依賴于此。 你應該清除此目錄為適合您的應用程式。
+* * *| OS 可能會清除此目錄的內容,每當它感覺它是必要的但不是依賴于此。 你應該清除此目錄為適合您的應用程式。
 
 ### Android 的檔案系統佈局
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[6/7] git commit: Merge branch 'master' of http://github.com/sosahvictor/cordova-plugin-file

Posted by ld...@apache.org.
Merge branch 'master' of http://github.com/sosahvictor/cordova-plugin-file


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/7433e81e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/7433e81e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/7433e81e

Branch: refs/heads/master
Commit: 7433e81e35d9ba9c1d3e6d5135f66a7166ff8f76
Parents: 9a82724 1437640
Author: Victor Sosa <vi...@mx1.ibm.com>
Authored: Wed Oct 15 15:01:04 2014 -0400
Committer: Lisa Seacat DeLuca <ld...@us.ibm.com>
Committed: Wed Oct 15 15:07:35 2014 -0400

----------------------------------------------------------------------

----------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[7/7] git commit: Merge remote-tracking branch 'origin/master'

Posted by ld...@apache.org.
Merge remote-tracking branch 'origin/master'


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/8ef744d2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/8ef744d2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/8ef744d2

Branch: refs/heads/master
Commit: 8ef744d28f53a05f0bd952f6d3c60a7bf53cdd81
Parents: 7433e81 a472b8c
Author: Victor Sosa <vi...@mx1.ibm.com>
Authored: Wed Oct 15 15:12:55 2014 -0400
Committer: Lisa Seacat DeLuca <ld...@us.ibm.com>
Committed: Wed Oct 15 15:13:22 2014 -0400

----------------------------------------------------------------------

----------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[4/7] git commit: CB-7700 cordova-plugin-file documentation translation: cordova-plugin-file

Posted by ld...@apache.org.
CB-7700 cordova-plugin-file documentation translation: cordova-plugin-file


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/9a827240
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/9a827240
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/9a827240

Branch: refs/heads/master
Commit: 9a827240b7f5708fa99427362bba9a344c5f918a
Parents: 570bcaa
Author: Victor Sosa <vi...@mx1.ibm.com>
Authored: Fri Oct 10 11:46:19 2014 -0500
Committer: Lisa Seacat DeLuca <ld...@us.ibm.com>
Committed: Wed Oct 15 14:57:05 2014 -0400

----------------------------------------------------------------------
 doc/de/index.md | 6 +++---
 doc/es/index.md | 6 +++---
 doc/fr/index.md | 6 +++---
 doc/it/index.md | 6 +++---
 doc/ja/index.md | 6 +++---
 doc/ko/index.md | 6 +++---
 doc/pl/index.md | 6 +++---
 doc/ru/index.md | 6 +++---
 doc/zh/index.md | 6 +++---
 9 files changed, 27 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/9a827240/doc/de/index.md
----------------------------------------------------------------------
diff --git a/doc/de/index.md b/doc/de/index.md
index dfcb9ff..be82fbf 100644
--- a/doc/de/index.md
+++ b/doc/de/index.md
@@ -96,14 +96,14 @@ Obwohl technisch ein Implementierungsdetail, kann es sehr hilfreich zu wissen wi
 |    `Library`                                 | -                           | Bibliothek            | R/w  |     Ja      |    Nein    | Ja?  |   Ja    |
 |       `NoCloud/`                             | dataDirectory               | Bibliothek-nosync     | R/w  |     Ja      |    Nein    | Nein |   Ja    |
 |       `Cloud/`                               | syncedDataDirectory         | -                     | R/w  |     Ja      |    Nein    |  Ja  |   Ja    |
-|       `Caches/`                              | cacheDirectory              | Cache                 | R/w  |    Ja *     | Ja \* * *| | Nein |   Ja    |
-|    `tmp/`                                    | tempDirectory               | -                     | R/w  |  Nicht * *  | Ja \* * *| | Nein |   Ja    |
+|       `Caches/`                              | cacheDirectory              | Cache                 | R/w  |    Ja *     | Ja * * *| | Nein |   Ja    |
+|    `tmp/`                                    | tempDirectory               | -                     | R/w  |  Nicht * *  | Ja * * *| | Nein |   Ja    |
 
 * Dateien werden hinweg app Neustarts und Upgrades beibehalten, aber dieses Verzeichnis kann gelöscht werden, wenn das OS begehrt. Ihre Anwendung sollte in der Lage, Inhalte zu erschaffen, die möglicherweise gelöscht werden.
 
 * *-Dateien kann über app-Neustarts beizubehalten, aber verlasse dich nicht auf dieses Verhalten. Dateien sind nicht unbedingt Aktuelles beibehalten. Ihre Anwendung sollte Dateien aus diesem Verzeichnis entfernen, wenn es gilt, diese Dateien werden entfernt, da das OS nicht wann (oder auch wenn) garantiert.
 
-\* * *| The OS kann den Inhalt dieses Verzeichnisses löschen, wenn es sich anfühlt, ist es erforderlich, aber verlassen Sie sich nicht dazu. Sie sollten dieses Verzeichnis entsprechend Ihrer Anwendung deaktivieren.
+* * *| The OS kann den Inhalt dieses Verzeichnisses löschen, wenn es sich anfühlt, ist es erforderlich, aber verlassen Sie sich nicht dazu. Sie sollten dieses Verzeichnis entsprechend Ihrer Anwendung deaktivieren.
 
 ### Android File System-Layout
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/9a827240/doc/es/index.md
----------------------------------------------------------------------
diff --git a/doc/es/index.md b/doc/es/index.md
index a4b619e..b2fec9f 100644
--- a/doc/es/index.md
+++ b/doc/es/index.md
@@ -96,14 +96,14 @@ Aunque técnicamente un detalle de la implementación, puede ser muy útil saber
 |    `Library`                                 | -                           | Biblioteca            |  r/w  |      Sí       |     No     |      ¿Sí?      |   Sí    |
 |       `NoCloud/`                             | dataDirectory               | Biblioteca-nosync     |  r/w  |      Sí       |     No     |       No       |   Sí    |
 |       `Cloud/`                               | syncedDataDirectory         | -                     |  r/w  |      Sí       |     No     |       Sí       |   Sí    |
-|       `Caches/`                              | cacheDirectory              | caché                 |  r/w  |     Sí *      | Si \* * *| |       No       |   Sí    |
-|    `tmp/`                                    | tempDirectory               | -                     |  r/w  |    No * *     | Si \* * *| |       No       |   Sí    |
+|       `Caches/`                              | cacheDirectory              | caché                 |  r/w  |     Sí *      | Si * * *| |       No       |   Sí    |
+|    `tmp/`                                    | tempDirectory               | -                     |  r/w  |    No * *     | Si * * *| |       No       |   Sí    |
 
 * Archivos persisten a través de la aplicación se reinicia y actualizaciones, pero este directorio puede ser despejó cuando el OS desea. Su aplicación debe ser capaz de recrear cualquier contenido que puede ser eliminado.
 
 * * Archivos pueden persistir a través de la aplicación se reinicia, pero no confiar en este comportamiento. Los archivos no se garantizan que persisten a través de actualizaciones. Su aplicación debe eliminar los archivos de este directorio cuando es aplicable, como el sistema operativo no garantiza cuando (o incluso si) estos archivos se quitan.
 
-\* * *| OS la puede borrar el contenido de este directorio cuando se siente que es necesario, pero no dependen de éste. Debe borrar este directorio según sea apropiado para su aplicación.
+* * *| OS la puede borrar el contenido de este directorio cuando se siente que es necesario, pero no dependen de éste. Debe borrar este directorio según sea apropiado para su aplicación.
 
 ### Disposición del sistema Android File
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/9a827240/doc/fr/index.md
----------------------------------------------------------------------
diff --git a/doc/fr/index.md b/doc/fr/index.md
index ea7cec3..5a82b94 100644
--- a/doc/fr/index.md
+++ b/doc/fr/index.md
@@ -96,14 +96,14 @@ Bien que techniquement un détail d'implémentation, il peut être très utile d
 |    `Library`                                 | -                           | Bibliothèque          |  r/w  |      Oui      |     Non     | Oui ? |  Oui  |
 |       `NoCloud/`                             | dataDirectory               | Bibliothèque-nosync   |  r/w  |      Oui      |     Non     |  Non  |  Oui  |
 |       `Cloud/`                               | syncedDataDirectory         | -                     |  r/w  |      Oui      |     Non     |  Oui  |  Oui  |
-|       `Caches/`                              | cacheDirectory              | cache                 |  r/w  |     Oui *     | Oui \* * *| |  Non  |  Oui  |
-|    `tmp/`                                    | tempDirectory               | -                     |  r/w  |    Ne * *     | Oui \* * *| |  Non  |  Oui  |
+|       `Caches/`                              | cacheDirectory              | cache                 |  r/w  |     Oui *     | Oui * * *| |  Non  |  Oui  |
+|    `tmp/`                                    | tempDirectory               | -                     |  r/w  |    Ne * *     | Oui * * *| |  Non  |  Oui  |
 
 * Fichiers persistent à travers les redémarrages de l'application et mises à niveau, mais ce répertoire peut être effacé à chaque fois que les désirs de l'OS. Votre application doit être en mesure de recréer tout contenu qui pourrait être supprimé.
 
 * * Fichiers peuvent persister redémarrages de l'application, mais ne vous fiez pas ce comportement. Les fichiers ne sont pas garantis à persister dans l'ensemble de mises à jour. Votre application doit supprimer les fichiers de ce répertoire lorsqu'elle s'applique, comme le système d'exploitation ne garantit pas quand (ou même si) ces fichiers sont supprimés.
 
-\* * *| L'OS peut effacer le contenu de ce répertoire chaque fois qu'il se sent il est nécessaire, mais ne comptez pas là-dessus. Vous devez supprimer ce répertoire comme approprié pour votre application.
+* * *| L'OS peut effacer le contenu de ce répertoire chaque fois qu'il se sent il est nécessaire, mais ne comptez pas là-dessus. Vous devez supprimer ce répertoire comme approprié pour votre application.
 
 ### Agencement de système de fichiers Android
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/9a827240/doc/it/index.md
----------------------------------------------------------------------
diff --git a/doc/it/index.md b/doc/it/index.md
index 4ed40f2..c2bedf5 100644
--- a/doc/it/index.md
+++ b/doc/it/index.md
@@ -96,14 +96,14 @@ Anche se tecnicamente un dettaglio di implementazione, può essere molto utile p
 |    `Library`                                 | -                           | libreria              | r/w  |      Sì      |     No      |       Sì?        |   Sì    |
 |       `NoCloud/`                             | dataDirectory               | nosync-libreria       | r/w  |      Sì      |     No      |        No        |   Sì    |
 |       `Cloud/`                               | syncedDataDirectory         | -                     | r/w  |      Sì      |     No      |        Sì        |   Sì    |
-|       `Caches/`                              | cacheDirectory              | cache                 | r/w  |     Sì *     | Sì \* * *|  |        No        |   Sì    |
-|    `tmp/`                                    | tempDirectory               | -                     | r/w  |    No * *    | Sì \* * *|  |        No        |   Sì    |
+|       `Caches/`                              | cacheDirectory              | cache                 | r/w  |     Sì *     | Sì * * *|  |        No        |   Sì    |
+|    `tmp/`                                    | tempDirectory               | -                     | r/w  |    No * *    | Sì * * *|  |        No        |   Sì    |
 
 * File persistono attraverso riavvii app e aggiornamenti, ma questa directory può essere azzerata ogni volta che desideri l'OS. L'app dovrebbe essere in grado di ricreare qualsiasi contenuto che potrebbe essere eliminato.
 
 * * File può persistere attraverso app riavvii, ma non fare affidamento su questo comportamento. I file non sono garantiti a persistere attraverso gli aggiornamenti. L'app deve rimuovere i file dalla directory quando è applicabile, come il sistema operativo non garantisce quando (o anche se) questi file vengono rimossi.
 
-\* * *| Il sistema operativo può cancellare il contenuto di questa directory ogni volta che si sente è necessario, ma non fare affidamento su questo. Si dovrebbe cancellare questa directory come adatto per l'applicazione.
+* * *| Il sistema operativo può cancellare il contenuto di questa directory ogni volta che si sente è necessario, ma non fare affidamento su questo. Si dovrebbe cancellare questa directory come adatto per l'applicazione.
 
 ### Layout sistema Android File
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/9a827240/doc/ja/index.md
----------------------------------------------------------------------
diff --git a/doc/ja/index.md b/doc/ja/index.md
index 9cb4fd0..16e9621 100644
--- a/doc/ja/index.md
+++ b/doc/ja/index.md
@@ -96,14 +96,14 @@ V1.2.0、現在重要なファイル システム ディレクトリへの Url 
 |    `Library`                         | -                           | ライブラリ                 |   r/w    |    はい    |    いいえ     | はいですか? |   はい   |
 |       `NoCloud/`                     | dataDirectory               | ライブラリ nosync          |   r/w    |    はい    |    いいえ     |  いいえ   |   はい   |
 |       `Cloud/`                       | syncedDataDirectory         | -                     |   r/w    |    はい    |    いいえ     |   はい   |   はい   |
-|       `Caches/`                      | cacheDirectory              | キャッシュ                 |   r/w    |   はい *   | はい \* * *| |  いいえ   |   はい   |
-|    `tmp/`                            | tempDirectory               | -                     |   r/w    | いいえ * *  | はい \* * *| |  いいえ   |   はい   |
+|       `Caches/`                      | cacheDirectory              | キャッシュ                 |   r/w    |   はい *   | はい * * *| |  いいえ   |   はい   |
+|    `tmp/`                            | tempDirectory               | -                     |   r/w    | いいえ * *  | はい * * *| |  いいえ   |   はい   |
 
 * アプリを再起動し、アップグレードとの間でファイルを保持が、OS を希望するたびにこのディレクトリを削除することができます。アプリを削除可能性があります任意のコンテンツを再作成することができる必要があります。
 
 * * ファイル アプリケーション再起動を渡って続くことがありますが、この動作に依存しないでください。 ファイルは、更新を維持するは保証されません。 アプリが該当する場合このディレクトリからファイルを削除する必要があります、これらのファイルが削除されるとき (または場合でも)、OS は保証しません。
 
-\* * *| OS はそれ、必要だと感じているときにこのディレクトリの内容を消去可能性がありますが、これに依存しません。 この適切なディレクトリに、アプリケーションをオフにする必要があります。
+* * *| OS はそれ、必要だと感じているときにこのディレクトリの内容を消去可能性がありますが、これに依存しません。 この適切なディレクトリに、アプリケーションをオフにする必要があります。
 
 ### 人造人間ファイル ・ システム ・ レイアウト
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/9a827240/doc/ko/index.md
----------------------------------------------------------------------
diff --git a/doc/ko/index.md b/doc/ko/index.md
index 411efc7..f34c00e 100644
--- a/doc/ko/index.md
+++ b/doc/ko/index.md
@@ -96,14 +96,14 @@ V1.2.0, 현재 중요 한 파일 시스템 디렉터리에 Url도 제공 됩니
 |    `Library`                         | -                           | 라이브러리                 | r/w  |   예    |    없음     | 그래? | 예  |
 |       `NoCloud/`                     | dataDirectory               | 라이브러리 nosync          | r/w  |   예    |    없음     | 없음  | 예  |
 |       `Cloud/`                       | syncedDataDirectory         | -                     | r/w  |   예    |    없음     |  예  | 예  |
-|       `Caches/`                      | cacheDirectory              | 캐시                    | r/w  |  예 *   | 예 \* * *| | 없음  | 예  |
-|    `tmp/`                            | tempDirectory               | -                     | r/w  | 아니 * * | 예 \* * *| | 없음  | 예  |
+|       `Caches/`                      | cacheDirectory              | 캐시                    | r/w  |  예 *   | 예 * * *| | 없음  | 예  |
+|    `tmp/`                            | tempDirectory               | -                     | r/w  | 아니 * * | 예 * * *| | 없음  | 예  |
 
 * 파일 응용 프로그램 다시 시작 및 업그레이드, 유지 하지만 OS 욕망 언제 든 지이 디렉터리를 지울 수 있습니다. 앱 삭제 될 수 있습니다 모든 콘텐츠를 다시 만들 수 있어야 합니다.
 
 * * 파일 응용 프로그램 다시 시작에서 지속 될 수 있습니다 하지만이 동작에 의존 하지 마십시오. 파일 여러 업데이트를 보장 하지 않습니다. 때 해당 앱이이 디렉터리에서 파일을 제거 해야, 이러한 파일을 제거할 때 (또는 경우에도) 운영 체제 보증 하지 않습니다으로.
 
-\* * *| OS 그것이 필요를 느낀다 언제 든 지이 디렉터리의 내용을 취소 될 수 있습니다 하지만 이것에 의존 하지 마십시오. 이 디렉터리를 응용 프로그램에 대 한 적절 한 선택을 취소 해야 합니다.
+* * *| OS 그것이 필요를 느낀다 언제 든 지이 디렉터리의 내용을 취소 될 수 있습니다 하지만 이것에 의존 하지 마십시오. 이 디렉터리를 응용 프로그램에 대 한 적절 한 선택을 취소 해야 합니다.
 
 ### 안 드 로이드 파일 시스템 레이아웃
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/9a827240/doc/pl/index.md
----------------------------------------------------------------------
diff --git a/doc/pl/index.md b/doc/pl/index.md
index 6356574..e00b33c 100644
--- a/doc/pl/index.md
+++ b/doc/pl/index.md
@@ -96,14 +96,14 @@ Chociaż technicznie implementacyjnym, może być bardzo przydatne wiedzieć, ja
 |    `Library`                                 | -                           | Biblioteka            | r/w  |   Tak   |     Nr      |      Tak?      |   Tak    |
 |       `NoCloud/`                             | dataDirectory               | Biblioteka nosync     | r/w  |   Tak   |     Nr      |       Nr       |   Tak    |
 |       `Cloud/`                               | syncedDataDirectory         | -                     | r/w  |   Tak   |     Nr      |      Tak       |   Tak    |
-|       `Caches/`                              | cacheDirectory              | pamięci podręcznej    | r/w  |  Tak *  | Tak \* * *| |       Nr       |   Tak    |
-|    `tmp/`                                    | tempDirectory               | -                     | r/w  | Nie * * | Tak \* * *| |       Nr       |   Tak    |
+|       `Caches/`                              | cacheDirectory              | pamięci podręcznej    | r/w  |  Tak *  | Tak * * *| |       Nr       |   Tak    |
+|    `tmp/`                                    | tempDirectory               | -                     | r/w  | Nie * * | Tak * * *| |       Nr       |   Tak    |
 
 * Pliki utrzymywały aplikacja zostanie ponownie uruchomiony i uaktualnienia, ale w tym katalogu mogą być rozliczone, gdy OS pragnienia. Aplikacji powinny być w stanie odtworzyć zawartość, która może być usunięta.
 
 * * Plików może utrzymywać się po ponownym uruchomieniu aplikacji, ale nie opierają się na tym zachowaniu. Pliki nie są gwarantowane w aktualizacji. Aplikacji należy usunąć pliki z tego katalogu, gdy ma to zastosowanie, ponieważ system operacyjny nie gwarantuje Kiedy (lub nawet jeśli) te pliki zostaną usunięte.
 
-\* * *| System operacyjny może wyczyścić zawartość w tym katalogu, gdy czuje, że jest to konieczne, ale nie powoływać się na to. Należy wyczyścić ten katalog jako odpowiednie dla aplikacji.
+* * *| System operacyjny może wyczyścić zawartość w tym katalogu, gdy czuje, że jest to konieczne, ale nie powoływać się na to. Należy wyczyścić ten katalog jako odpowiednie dla aplikacji.
 
 ### Układ systemu Android plików
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/9a827240/doc/ru/index.md
----------------------------------------------------------------------
diff --git a/doc/ru/index.md b/doc/ru/index.md
index 123a598..2a23e69 100644
--- a/doc/ru/index.md
+++ b/doc/ru/index.md
@@ -96,14 +96,14 @@
 |    `Library`                                   | -                           | Библиотека            | r/w  |    Да    |    Нет     |      Да?      |   Да    |
 |       `NoCloud/`                               | dataDirectory               | Библиотека nosync     | r/w  |    Да    |    Нет     |      Нет      |   Да    |
 |       `Cloud/`                                 | syncedDataDirectory         | -                     | r/w  |    Да    |    Нет     |      Да       |   Да    |
-|       `Caches/`                                | cacheDirectory              | кэш                   | r/w  |   Да *   | Да \* * *| |      Нет      |   Да    |
-|    `tmp/`                                      | tempDirectory               | -                     | r/w  |  Не * *  | Да \* * *| |      Нет      |   Да    |
+|       `Caches/`                                | cacheDirectory              | кэш                   | r/w  |   Да *   | Да * * *| |      Нет      |   Да    |
+|    `tmp/`                                      | tempDirectory               | -                     | r/w  |  Не * *  | Да * * *| |      Нет      |   Да    |
 
 * Файлы сохраняются приложения перезагрузки и обновления, но этот каталог может быть очищен, когда ОС желаний. Ваше приложение должно иметь возможность воссоздать любое содержание, которое может быть удалено.
 
 * * Файлы могут сохраняться перезагрузками app, но не полагайтесь на это поведение. Для продолжения обновления файлов не гарантируется. Приложение должно удалить файлы из этого каталога, когда это применимо, как операционная система не гарантирует когда (или даже если) эти файлы будут удалены.
 
-\* * *| ОС может очистить содержимое этого каталога, когда он считает это необходимым, но не полагайтесь на это. Необходимо снять этот каталог в зависимости от вашего приложения.
+* * *| ОС может очистить содержимое этого каталога, когда он считает это необходимым, но не полагайтесь на это. Необходимо снять этот каталог в зависимости от вашего приложения.
 
 ### Расположения Android файловой системы
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/9a827240/doc/zh/index.md
----------------------------------------------------------------------
diff --git a/doc/zh/index.md b/doc/zh/index.md
index ddf8d2b..4d2077a 100644
--- a/doc/zh/index.md
+++ b/doc/zh/index.md
@@ -103,14 +103,14 @@
 |    `Library`                    | -                           | 圖書館                   |  r/w   |   是啊   |     無      | 是嗎? | 是啊 |
 |       `NoCloud/`                | dataDirectory               | 圖書館 nosync            |  r/w   |   是啊   |     無      |  無  | 是啊 |
 |       `Cloud/`                  | syncedDataDirectory         | -                     |  r/w   |   是啊   |     無      | 是啊  | 是啊 |
-|       `Caches/`                 | cacheDirectory              | 快取記憶體                 |  r/w   |  是啊 *  | 是的 \* * *| |  無  | 是啊 |
-|    `tmp/`                       | tempDirectory               | -                     |  r/w   | 沒有 * * | 是的 \* * *| |  無  | 是啊 |
+|       `Caches/`                 | cacheDirectory              | 快取記憶體                 |  r/w   |  是啊 *  | 是的 * * *| |  無  | 是啊 |
+|    `tmp/`                       | tempDirectory               | -                     |  r/w   | 沒有 * * | 是的 * * *| |  無  | 是啊 |
 
 * 檔堅持跨應用程式重新開機和升級,但是每當 OS 的欲望,可以清除此目錄。您的應用程式應該能夠重新創建任何內容可能會被刪除。
 
 * * 檔可能會持續整個應用程式重新開機,但不是依賴于這種行為。 不保證檔在更新之間持續存在。 您的應用程式應該從這個目錄刪除檔,在適當的時候,作為作業系統並不能保證時 (或即使) 中刪除這些檔。
 
-\* * *| OS 可能會清除此目錄的內容,每當它感覺它是必要的但不是依賴于此。 你應該清除此目錄為適合您的應用程式。
+* * *| OS 可能會清除此目錄的內容,每當它感覺它是必要的但不是依賴于此。 你應該清除此目錄為適合您的應用程式。
 
 ### Android 的檔案系統佈局
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[5/7] git commit: Merge branch 'master' of http://github.com/sosahvictor/cordova-plugin-file

Posted by ld...@apache.org.
Merge branch 'master' of http://github.com/sosahvictor/cordova-plugin-file


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/a472b8c3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/a472b8c3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/a472b8c3

Branch: refs/heads/master
Commit: a472b8c37d782c0699973e225b99749b69b94f01
Parents: 9a82724 1437640
Author: Lisa Seacat DeLuca <ld...@us.ibm.com>
Authored: Wed Oct 15 15:01:04 2014 -0400
Committer: Lisa Seacat DeLuca <ld...@us.ibm.com>
Committed: Wed Oct 15 15:01:04 2014 -0400

----------------------------------------------------------------------

----------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[3/7] git commit: Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-plugin-file

Posted by ld...@apache.org.
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-plugin-file


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/570bcaad
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/570bcaad
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/570bcaad

Branch: refs/heads/master
Commit: 570bcaadd11976a6f6d14b19a7cdc2055807f8e5
Parents: 5339be1 ab9ff4d
Author: Lisa Seacat DeLuca <ld...@us.ibm.com>
Authored: Wed Oct 15 14:56:53 2014 -0400
Committer: Lisa Seacat DeLuca <ld...@us.ibm.com>
Committed: Wed Oct 15 14:56:53 2014 -0400

----------------------------------------------------------------------

----------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[2/7] git commit: Use one proxy for both windows and windows8 platforms

Posted by ld...@apache.org.
Use one proxy for both windows and windows8 platforms


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/5339be1b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/5339be1b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/5339be1b

Branch: refs/heads/master
Commit: 5339be1b419f0b199e1a03900db4d0c107507e1c
Parents: cfcb74c
Author: Victor Sosa <vi...@mx1.ibm.com>
Authored: Fri Oct 10 12:40:26 2014 +0400
Committer: Lisa Seacat DeLuca <ld...@us.ibm.com>
Committed: Wed Oct 15 14:45:06 2014 -0400

----------------------------------------------------------------------
 plugin.xml                |   2 +-
 src/windows8/FileProxy.js | 995 -----------------------------------------
 2 files changed, 1 insertion(+), 996 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/5339be1b/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 0f06eb9..412ba57 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -313,7 +313,7 @@ xmlns:android="http://schemas.android.com/apk/res/android"
 
     <!-- windows8 -->
     <platform name="windows8">
-        <js-module src="src/windows8/FileProxy.js" name="FileProxy">
+        <js-module src="src/windows/FileProxy.js" name="FileProxy">
             <merges target="" />
         </js-module>
     </platform>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/5339be1b/src/windows8/FileProxy.js
----------------------------------------------------------------------
diff --git a/src/windows8/FileProxy.js b/src/windows8/FileProxy.js
deleted file mode 100644
index b58eb1d..0000000
--- a/src/windows8/FileProxy.js
+++ /dev/null
@@ -1,995 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var cordova = require('cordova');
-var Entry = require('./Entry'),
-    File = require('./File'),
-    FileEntry = require('./FileEntry'),
-    FileError = require('./FileError'),
-    DirectoryEntry = require('./DirectoryEntry'),
-    Flags = require('./Flags'),
-    FileSystem = require('./FileSystem'),
-    LocalFileSystem = require('./LocalFileSystem');
-
-// Some private helper functions, hidden by the module
-function cordovaPathToNative(path) {
-    // turn / into \\
-    var cleanPath = path.replace(/\//g, '\\');
-    // turn  \\ into \
-    cleanPath = cleanPath.replace(/\\\\/g, '\\');
-    // strip end \\ characters
-    cleanPath = cleanPath.replace(/\\+$/g, '');
-    return cleanPath;
-};
-
-function nativePathToCordova(path) {
-    var cleanPath = path.replace(/\\/g, '/');
-    return cleanPath;
-};
-
-function getFilesystemFromPath(path) {
-    var storageFolderPermanent = Windows.Storage.ApplicationData.current.localFolder.path,
-        storageFolderTemporary = Windows.Storage.ApplicationData.current.temporaryFolder.path,
-        fs = null;
-
-    if (path.indexOf(storageFolderPermanent) === 0) {
-        fs = new FileSystem('persistent', { name: 'persistent', fullPath: storageFolderPermanent });
-    } else if (path.indexOf(storageFolderTemporary) === 0) {
-        fs = new FileSystem('temporary', { name: 'temporary', fullPath: storageFolderTemporary });
-    }
-    return fs;
-};
-
-var getFolderFromPathAsync = Windows.Storage.StorageFolder.getFolderFromPathAsync;
-var getFileFromPathAsync = Windows.Storage.StorageFile.getFileFromPathAsync;
-
-var writeBytesAsync = Windows.Storage.FileIO.writeBytesAsync;
-var writeTextAsync = Windows.Storage.FileIO.writeTextAsync;
-var writeBlobAsync = function writeBlobAsync(storageFile, data) {
-    return new WinJS.Promise(function (resolve, reject) {
-        storageFile.openAsync(Windows.Storage.FileAccessMode.readWrite).then(
-            function (output) {
-                var input;
-                if (data.detachStream) {
-                    input = data.detachStream();
-                }
-                else {
-                    input = data.msDetachStream();
-                }
-
-                // Copy the stream from the blob to the File stream 
-                Windows.Storage.Streams.RandomAccessStream.copyAsync(input, output).then(
-                    function () {
-                        output.flushAsync().done(
-                            function () {
-                                input.close();
-                                output.close();
-
-                                resolve(data.length);
-                            },
-                            function () {
-                                reject(FileError.INVALID_MODIFICATION_ERR);
-                            }
-                        );
-                    },
-                    function () {
-                        reject(FileError.INVALID_MODIFICATION_ERR);
-                    }
-                );
-            },
-            function () {
-                reject(FileError.INVALID_MODIFICATION_ERR);
-            }
-        );
-    });
-};
-
-module.exports = {
-
-    getFileMetadata: function (success, fail, args) {
-        module.exports.getMetadata(success, fail, args);
-    },
-
-    getMetadata: function (success, fail, args) {
-
-        var fullPath = cordovaPathToNative(args[0]);
-
-        var getMetadataForFile = function (storageFile) {
-            storageFile.getBasicPropertiesAsync().then(
-                function (basicProperties) {
-                    success(new File(storageFile.name, storageFile.path, storageFile.fileType, basicProperties.dateModified, basicProperties.size));
-                }, function () {
-                    fail(FileError.NOT_READABLE_ERR);
-                }
-            );
-        };
-
-        var getMetadataForFolder = function (storageFolder) {
-            storageFolder.getBasicPropertiesAsync().then(
-                function (basicProperties) {
-                    var metadata = {
-                        size: basicProperties.size,
-                        lastModifiedDate: basicProperties.dateModified
-                    };
-                    success(metadata);
-                },
-                function () {
-                    fail(FileError.NOT_READABLE_ERR);
-                }
-            );
-        };
-
-        getFileFromPathAsync(fullPath).then(getMetadataForFile,
-            function () {
-                getFolderFromPathAsync(fullPath).then(getMetadataForFolder,
-                    function () {
-                        fail(FileError.NOT_FOUND_ERR);
-                    }
-                );
-            }
-        );
-    },
-
-    getParent: function (win, fail, args) { // ["fullPath"]
-
-        var fullPath = cordovaPathToNative(args[0]);
-
-        var storageFolderPer = Windows.Storage.ApplicationData.current.localFolder;
-        var storageFolderTem = Windows.Storage.ApplicationData.current.temporaryFolder;
-
-        if (fullPath == storageFolderPer.path) {
-            win(new DirectoryEntry(storageFolderPer.name, storageFolderPer.path, getFilesystemFromPath(storageFolderPer.path)));
-            return;
-        } else if (fullPath == storageFolderTem.path) {
-            win(new DirectoryEntry(storageFolderTem.name, storageFolderTem.path, getFilesystemFromPath(storageFolderTem.path)));
-            return;
-        }
-        var splitArr = fullPath.split(new RegExp(/\/|\\/g));
-
-        var popItem = splitArr.pop();
-
-        var resultPath = fullPath.substr(0, fullPath.length - popItem.length - 1);
-        var result = new DirectoryEntry(popItem, resultPath, getFilesystemFromPath(resultPath));
-        getFolderFromPathAsync(result.fullPath).done(
-            function () { win(result); },
-            function () { fail(FileError.INVALID_STATE_ERR); }
-        );
-    },
-
-    readAsText: function (win, fail, args) {
-
-        var fileName = cordovaPathToNative(args[0]),
-            enc = args[1],
-            startPos = args[2],
-            endPos = args[3];
-
-        var encoding = Windows.Storage.Streams.UnicodeEncoding.utf8;
-        if (enc == 'Utf16LE' || enc == 'utf16LE') {
-            encoding = Windows.Storage.Streams.UnicodeEncoding.utf16LE;
-        } else if (enc == 'Utf16BE' || enc == 'utf16BE') {
-            encoding = Windows.Storage.Streams.UnicodeEncoding.utf16BE;
-        }
-
-        getFileFromPathAsync(fileName).then(function(file) {
-                return file.openReadAsync();
-            }).then(function (stream) {
-                startPos = (startPos < 0) ? Math.max(stream.size + startPos, 0) : Math.min(stream.size, startPos);
-                endPos = (endPos < 0) ? Math.max(endPos + stream.size, 0) : Math.min(stream.size, endPos);
-                stream.seek(startPos);
-                
-                var readSize = endPos - startPos,
-                    buffer = new Windows.Storage.Streams.Buffer(readSize);
-
-                return stream.readAsync(buffer, readSize, Windows.Storage.Streams.InputStreamOptions.none);
-            }).done(function(buffer) {
-                win(Windows.Security.Cryptography.CryptographicBuffer.convertBinaryToString(encoding, buffer));
-            },function() {
-                fail(FileError.NOT_FOUND_ERR);
-            });
-    },
-
-    readAsBinaryString:function(win,fail,args) {
-        var fileName = cordovaPathToNative(args[0]),
-            startPos = args[1],
-            endPos = args[2];
-
-
-        getFileFromPathAsync(fileName).then(
-            function (storageFile) {
-                Windows.Storage.FileIO.readBufferAsync(storageFile).done(
-                    function (buffer) {
-                        var dataReader = Windows.Storage.Streams.DataReader.fromBuffer(buffer);
-                        // var fileContent = dataReader.readString(buffer.length);
-                        var byteArray = new Uint8Array(buffer.length),
-                            byteString = "";
-                        dataReader.readBytes(byteArray);
-                        dataReader.close();
-                        for (var i = 0; i < byteArray.length; i++) {
-                            var charByte = byteArray[i];
-                            // var charRepresentation = charByte <= 127 ? String.fromCharCode(charByte) : charByte.toString(16);
-                            var charRepresentation = String.fromCharCode(charByte);
-                            byteString += charRepresentation;
-                        }
-                        win(byteString.slice(startPos, endPos));
-                    }
-                );
-            }, function () {
-                fail(FileError.NOT_FOUND_ERR);
-            }
-        );
-    },
-
-    readAsArrayBuffer:function(win,fail,args) {
-        var fileName =cordovaPathToNative(args[0]);
-
-        getFileFromPathAsync(fileName).then(
-            function (storageFile) {
-                var blob = MSApp.createFileFromStorageFile(storageFile);
-                var url = URL.createObjectURL(blob, { oneTimeOnly: true });
-                var xhr = new XMLHttpRequest();
-                xhr.open("GET", url, true);
-                xhr.responseType = 'arraybuffer';
-                xhr.onload = function () {
-                    var resultArrayBuffer = xhr.response;
-                    // get start and end position of bytes in buffer to be returned
-                    var startPos = args[1] || 0,
-                        endPos = args[2] || resultArrayBuffer.length;
-                    // if any of them is specified, we'll slice output array
-                    if (startPos !== 0 || endPos !== resultArrayBuffer.length) {
-                        // slice method supported only on Windows 8.1, so we need to check if it's available 
-                        // see http://msdn.microsoft.com/en-us/library/ie/dn641192(v=vs.94).aspx
-                        if (resultArrayBuffer.slice) {
-                            resultArrayBuffer = resultArrayBuffer.slice(startPos, endPos);
-                        } else {
-                            // if slice isn't available, we'll use workaround method
-                            var tempArray = new Uint8Array(resultArrayBuffer),
-                                resBuffer = new ArrayBuffer(endPos - startPos),
-                                resArray = new Uint8Array(resBuffer);
-
-                            for (var i = 0; i < resArray.length; i++) {
-                                resArray[i] = tempArray[i + startPos];
-                            }
-                            resultArrayBuffer = resBuffer;
-                        }
-                    }
-                    win(resultArrayBuffer);
-                };
-                xhr.send();
-            }, function () {
-                fail(FileError.NOT_FOUND_ERR);
-            }
-        );
-    },
-
-    readAsDataURL: function (win, fail, args) {
-
-        var fileName = cordovaPathToNative(args[0]);
-
-        getFileFromPathAsync(fileName).then(
-            function (storageFile) {
-                Windows.Storage.FileIO.readBufferAsync(storageFile).done(
-                    function (buffer) {
-                        var strBase64 = Windows.Security.Cryptography.CryptographicBuffer.encodeToBase64String(buffer);
-                        //the method encodeToBase64String will add "77u/" as a prefix, so we should remove it
-                        if(String(strBase64).substr(0,4) == "77u/") {
-                            strBase64 = strBase64.substr(4);
-                        }
-                        var mediaType = storageFile.contentType;
-                        var result = "data:" + mediaType + ";base64," + strBase64;
-                        win(result);
-                    }
-                );
-            }, function () {
-                fail(FileError.NOT_FOUND_ERR);
-            }
-        );
-    },
-
-    getDirectory: function (win, fail, args) {
-
-        var fullPath = cordovaPathToNative(args[0]);
-        var path = cordovaPathToNative(args[1]);
-        var options = args[2];
-
-        var flag = "";
-        if (options) {
-            flag = new Flags(options.create, options.exclusive);
-        } else {
-            flag = new Flags(false, false);
-        }
-
-        getFolderFromPathAsync(fullPath).then(
-            function (storageFolder) {
-                if (flag.create === true && flag.exclusive === true) {
-                    storageFolder.createFolderAsync(path, Windows.Storage.CreationCollisionOption.failIfExists).done(
-                        function (storageFolder) {
-                            win(new DirectoryEntry(storageFolder.name, storageFolder.path, getFilesystemFromPath(storageFolder.path)));
-                        }, function () {
-                            fail(FileError.PATH_EXISTS_ERR);
-                        }
-                    );
-                } else if (flag.create === true && flag.exclusive === false) {
-                    storageFolder.createFolderAsync(path, Windows.Storage.CreationCollisionOption.openIfExists).done(
-                        function (storageFolder) {
-                            win(new DirectoryEntry(storageFolder.name, storageFolder.path + "/", getFilesystemFromPath(storageFolder.path + "/")));
-                        }, function () {
-                            fail(FileError.INVALID_MODIFICATION_ERR);
-                        }
-                    );
-                } else if (flag.create === false) {
-                    if (/\?|\\|\*|\||\"|<|>|\:|\//g.test(path)) {
-                        fail(FileError.ENCODING_ERR);
-                        return;
-                    }
-
-                    storageFolder.getFolderAsync(path).done(
-                        function (storageFolder) {
-                            win(new DirectoryEntry(storageFolder.name, storageFolder.path, getFilesystemFromPath(storageFolder.path)));
-                        }, function () {
-                            // check if path actually points to a file
-                            storageFolder.getFileAsync(path).done(
-                                function () {
-                                    fail(FileError.TYPE_MISMATCH_ERR);
-                                }, function() {
-                                    fail(FileError.NOT_FOUND_ERR);
-                                });
-                        }
-                    );
-                }
-            }, function () {
-                fail(FileError.NOT_FOUND_ERR);
-            }
-        );
-    },
-
-    remove: function (win, fail, args) {
-
-        var fullPath = cordovaPathToNative(args[0]);
-
-        getFileFromPathAsync(fullPath).then(
-            function (sFile) {
-                getFileFromPathAsync(fullPath).done(function (storageFile) {
-                    storageFile.deleteAsync().done(win, function () {
-                        fail(FileError.INVALID_MODIFICATION_ERR);
-
-                    });
-                });
-            },
-            function () {
-                getFolderFromPathAsync(fullPath).then(
-                    function (sFolder) {
-                        var removeEntry = function () {
-                            var storageFolderTop = null;
-
-                            getFolderFromPathAsync(fullPath).then(
-                                function (storageFolder) {
-                                    // FileSystem root can't be removed!
-                                    var storageFolderPer = Windows.Storage.ApplicationData.current.localFolder;
-                                    var storageFolderTem = Windows.Storage.ApplicationData.current.temporaryFolder;
-                                    if (fullPath == storageFolderPer.path || fullPath == storageFolderTem.path) {
-                                        fail(FileError.NO_MODIFICATION_ALLOWED_ERR);
-                                        return;
-                                    }
-                                    storageFolderTop = storageFolder;
-                                    return storageFolder.createFileQuery().getFilesAsync();
-                                }, function () {
-                                    fail(FileError.INVALID_MODIFICATION_ERR);
-
-                                }
-                            // check sub-files.
-                            ).then(function (fileList) {
-                                if (fileList) {
-                                    if (fileList.length === 0) {
-                                        return storageFolderTop.createFolderQuery().getFoldersAsync();
-                                    } else {
-                                        fail(FileError.INVALID_MODIFICATION_ERR);
-                                    }
-                                }
-                            // check sub-folders.
-                            }).then(function (folderList) {
-                                if (folderList) {
-                                    if (folderList.length === 0) {
-                                        storageFolderTop.deleteAsync().done(win, function () {
-                                            fail(FileError.INVALID_MODIFICATION_ERR);
-
-                                        });
-                                    } else {
-                                        fail(FileError.INVALID_MODIFICATION_ERR);
-                                    }
-                                }
-
-                            });
-                        };
-                        removeEntry();
-                    }, function () {
-                        fail(FileError.NOT_FOUND_ERR);
-                    }
-                );
-            }
-        );
-    },
-
-    removeRecursively: function (successCallback, fail, args) {
-
-        var fullPath = cordovaPathToNative(args[0]);
-
-        getFolderFromPathAsync(fullPath).done(function (storageFolder) {
-            var storageFolderPer = Windows.Storage.ApplicationData.current.localFolder;
-            var storageFolderTem = Windows.Storage.ApplicationData.current.temporaryFolder;
-
-            if (storageFolder.path == storageFolderPer.path || storageFolder.path == storageFolderTem.path) {
-                fail(FileError.NO_MODIFICATION_ALLOWED_ERR);
-                return;
-            }
-
-            storageFolder.deleteAsync().done(function (res) {
-                successCallback(res);
-            }, function (err) {
-                fail(err);
-            });
-
-        }, function () {
-            fail(FileError.FILE_NOT_FOUND_ERR);
-        });
-    },
-
-    getFile: function (win, fail, args) {
-
-        //not sure why, but it won't work with normal slashes...
-        var fullPath = cordovaPathToNative(args[0]);
-        var path = cordovaPathToNative(args[1]);
-        var options = args[2];
-
-        var completePath = fullPath + '\\' + path;
-        //handles trailing slash and leading slash, or just one or the other
-        completePath = completePath.replace(/\\\\\\/g, '/').replace(/\\\\/g, '\\');
-
-        var fileName = completePath.substring(completePath.lastIndexOf('\\'));
-
-        //final adjustment
-        fullPath = completePath.substring(0, completePath.lastIndexOf('\\'));
-        path = fileName.replace(/\\/g, '');
-
-        var flag = "";
-        if (options !== null) {
-            flag = new Flags(options.create, options.exclusive);
-        } else {
-            flag = new Flags(false, false);
-        }
-
-        getFolderFromPathAsync(fullPath).then(
-            function (storageFolder) {
-                if (flag.create === true && flag.exclusive === true) {
-                    storageFolder.createFileAsync(path, Windows.Storage.CreationCollisionOption.failIfExists).done(
-                        function (storageFile) {
-                            win(new FileEntry(storageFile.name, nativePathToCordova(storageFile.path), getFilesystemFromPath(storageFile.path)));
-                        }, function () {
-                            fail(FileError.PATH_EXISTS_ERR);
-                        }
-                    );
-                } else if (flag.create === true && flag.exclusive === false) {
-                    storageFolder.createFileAsync(path, Windows.Storage.CreationCollisionOption.openIfExists).done(
-                        function (storageFile) {
-                            win(new FileEntry(storageFile.name, nativePathToCordova(storageFile.path), getFilesystemFromPath(storageFile.path)));
-                        }, function () {
-                            fail(FileError.INVALID_MODIFICATION_ERR);
-                        }
-                    );
-                } else if (flag.create === false) {
-                    if (/\?|\\|\*|\||\"|<|>|\:|\//g.test(path)) {
-                        fail(FileError.ENCODING_ERR);
-                        return;
-                    }
-                    storageFolder.getFileAsync(path).done(
-                        function (storageFile) {
-                            win(new FileEntry(storageFile.name, nativePathToCordova(storageFile.path), getFilesystemFromPath(storageFile.path)));
-                        }, function () {
-                            // check if path actually points to a folder
-                            storageFolder.getFolderAsync(path).done(
-                                function () {
-                                    fail(FileError.TYPE_MISMATCH_ERR);
-                                }, function () {
-                                    fail(FileError.NOT_FOUND_ERR);
-                                });
-                        }
-                    );
-                }
-            }, function () {
-                fail(FileError.NOT_FOUND_ERR);
-            }
-        );
-    },
-
-    readEntries: function (win, fail, args) { // ["fullPath"]
-
-        var path = cordovaPathToNative(args[0]);
-
-        var result = [];
-
-        getFolderFromPathAsync(path).then(function (storageFolder) {
-            var promiseArr = [];
-            var index = 0;
-            promiseArr[index++] = storageFolder.createFileQuery().getFilesAsync().then(function (fileList) {
-                if (fileList !== null) {
-                    for (var i = 0; i < fileList.length; i++) {
-                        result.push(new FileEntry(fileList[i].name, fileList[i].path, getFilesystemFromPath (fileList[i].path)));
-                    }
-                }
-            });
-            promiseArr[index++] = storageFolder.createFolderQuery().getFoldersAsync().then(function (folderList) {
-                if (folderList !== null) {
-                    for (var j = 0; j < folderList.length; j++) {
-                        result.push(new DirectoryEntry(folderList[j].name, folderList[j].path, getFilesystemFromPath(folderList[j].path)));
-                    }
-                }
-            });
-            WinJS.Promise.join(promiseArr).then(function () {
-                win(result);
-            });
-
-        }, function () { fail(FileError.NOT_FOUND_ERR); });
-    },
-
-    write: function (win, fail, args) {
-
-        var fileName = cordovaPathToNative(args[0]),
-            data = args[1],
-            position = args[2],
-            isBinary = args[3];
-
-        if (data instanceof ArrayBuffer) {
-            var dataView = new DataView(data);
-            data = new Blob([dataView]);
-        }
-
-        fileName = fileName.split("/").join("\\");
-
-        // split path to folder and file name
-        var path = fileName.substring(0, fileName.lastIndexOf('\\')),
-            file = fileName.split('\\').pop();
-
-        getFolderFromPathAsync(path).done(
-            function(storageFolder) {
-                storageFolder.createFileAsync(file, Windows.Storage.CreationCollisionOption.openIfExists).done(
-                    function(storageFile) {
-                        var writePromise;
-                        if (data instanceof Blob || data instanceof File) {
-                            writePromise = writeBlobAsync;
-                        }
-                        else if (isBinary) {
-                            writePromise = writeBytesAsync;
-                        }
-                        else {
-                            writePromise = writeTextAsync;
-                        }
-
-                        writePromise(storageFile, data).done(
-                            function () {
-                                win(data.length);
-                            },
-                            function () {
-                                fail(FileError.INVALID_MODIFICATION_ERR);
-                            }
-                        );
-                    },
-                    function () {
-                        fail(FileError.INVALID_MODIFICATION_ERR);
-                    }
-                );
-
-            },
-            function () {
-                fail(FileError.NOT_FOUND_ERR);
-            }
-        );
-    },
-
-    truncate: function (win, fail, args) { // ["fileName","size"]
-
-        var fileName = cordovaPathToNative(args[0]);
-        var size = args[1];
-
-        getFileFromPathAsync(fileName).done(function(storageFile){
-            //the current length of the file.
-            var leng = 0;
-
-            storageFile.getBasicPropertiesAsync().then(function (basicProperties) {
-                leng = basicProperties.size;
-                if (Number(size) >= leng) {
-                    win(this.length);
-                    return;
-                }
-                if (Number(size) >= 0) {
-                    Windows.Storage.FileIO.readTextAsync(storageFile, Windows.Storage.Streams.UnicodeEncoding.utf8).then(function (fileContent) {
-                        fileContent = fileContent.substr(0, size);
-                        var fullPath = storageFile.path;
-                        var name = storageFile.name;
-                        var entry = new Entry(true, false, name, fullPath, getFilesystemFromPath(fullPath));
-                        var parentPath = "";
-                        var successCallBack = function (entry) {
-                            parentPath = entry.fullPath;
-                            storageFile.deleteAsync().then(function () {
-                                return getFolderFromPathAsync(parentPath);
-                            }).then(function (storageFolder) {
-                                storageFolder.createFileAsync(name).then(function (newStorageFile) {
-                                    Windows.Storage.FileIO.writeTextAsync(newStorageFile, fileContent).done(function () {
-                                        win(String(fileContent).length);
-                                    }, function () {
-                                        fail(FileError.NO_MODIFICATION_ALLOWED_ERR);
-                                    });
-                                }, function() {
-                                    fail(FileError.NO_MODIFICATION_ALLOWED_ERR);
-                                });
-                            });
-                        };
-                        entry.getParent(successCallBack, null);
-                    }, function () { fail(FileError.NOT_FOUND_ERR); });
-                }
-            });
-        }, function () { fail(FileError.NOT_FOUND_ERR); });
-    },
-
-    copyTo: function (success, fail, args) { // ["fullPath","parent", "newName"]
-
-        var srcPath = cordovaPathToNative(args[0]);
-        var parentFullPath = cordovaPathToNative(args[1]);
-        var name = args[2];
-
-        //name can't be invalid
-        if (/\?|\\|\*|\||\"|<|>|\:|\//g.test(name)) {
-            fail(FileError.ENCODING_ERR);
-            return;
-        }
-        // copy
-        var copyFiles = "";
-        getFileFromPathAsync(srcPath).then(
-            function (sFile) {
-                copyFiles = function (srcPath, parentPath) {
-                    var storageFileTop = null;
-                    getFileFromPathAsync(srcPath).then(function (storageFile) {
-                        storageFileTop = storageFile;
-                        return getFolderFromPathAsync(parentPath);
-                    }, function () {
-
-                        fail(FileError.NOT_FOUND_ERR);
-                    }).then(function (storageFolder) {
-                        storageFileTop.copyAsync(storageFolder, name, Windows.Storage.NameCollisionOption.failIfExists).then(function (storageFile) {
-
-                            success(new FileEntry(storageFile.name, nativePathToCordova(storageFile.path), getFilesystemFromPath(storageFile.path)));
-                        }, function () {
-
-                            fail(FileError.INVALID_MODIFICATION_ERR);
-                        });
-                    }, function () {
-
-                        fail(FileError.NOT_FOUND_ERR);
-                    });
-                };
-                var copyFinish = function (srcPath, parentPath) {
-                    copyFiles(srcPath, parentPath);
-                };
-                copyFinish(srcPath, parentFullPath);
-            },
-            function () {
-                getFolderFromPathAsync(srcPath).then(
-                    function (sFolder) {
-                        copyFiles = function (srcPath, parentPath) {
-                            var coreCopy = function (storageFolderTop, complete) {
-                                storageFolderTop.createFolderQuery().getFoldersAsync().then(function (folderList) {
-                                    var folderPromiseArr = [];
-                                    if (folderList.length === 0) { complete(); }
-                                    else {
-                                        getFolderFromPathAsync(parentPath).then(function (storageFolderTarget) {
-                                            var tempPromiseArr = [];
-                                            var index = 0;
-                                            for (var j = 0; j < folderList.length; j++) {
-                                                tempPromiseArr[index++] = storageFolderTarget.createFolderAsync(folderList[j].name).then(function (targetFolder) {
-                                                    folderPromiseArr.push(copyFiles(folderList[j].path, targetFolder.path));
-                                                });
-                                            }
-                                            WinJS.Promise.join(tempPromiseArr).then(function () {
-                                                WinJS.Promise.join(folderPromiseArr).then(complete);
-                                            });
-                                        });
-                                    }
-                                });
-                            };
-
-                            return new WinJS.Promise(function (complete) {
-                                var storageFolderTop = null;
-                                var filePromiseArr = [];
-                                var fileListTop = null;
-                                getFolderFromPathAsync(srcPath).then(function (storageFolder) {
-                                    storageFolderTop = storageFolder;
-                                    return storageFolder.createFileQuery().getFilesAsync();
-                                }).then(function (fileList) {
-                                    fileListTop = fileList;
-                                    if (fileList) {
-                                        return getFolderFromPathAsync(parentPath);
-                                    }
-                                }).then(function (targetStorageFolder) {
-                                    for (var i = 0; i < fileListTop.length; i++) {
-                                        filePromiseArr.push(fileListTop[i].copyAsync(targetStorageFolder));
-                                    }
-                                    WinJS.Promise.join(filePromiseArr).done(function () {
-                                        coreCopy(storageFolderTop, complete);
-                                    }, function() {
-                                        fail(FileError.INVALID_MODIFICATION_ERR);
-                                    });
-                                });
-                            });
-                        };
-                        var copyFinish = function (srcPath, parentPath) {
-                            getFolderFromPathAsync(parentPath).then(function (storageFolder) {
-                                storageFolder.createFolderAsync(name, Windows.Storage.CreationCollisionOption.openIfExists).then(function (newStorageFolder) {
-                                    //can't copy onto itself
-                                    if (srcPath == newStorageFolder.path) {
-                                        fail(FileError.INVALID_MODIFICATION_ERR);
-                                        return;
-                                    }
-                                    //can't copy into itself
-                                    if (srcPath == parentPath) {
-                                        fail(FileError.INVALID_MODIFICATION_ERR);
-                                        return;
-                                    }
-                                    copyFiles(srcPath, newStorageFolder.path).then(function () {
-                                        getFolderFromPathAsync(newStorageFolder.path).done(
-                                            function (storageFolder) {
-                                                success(new DirectoryEntry(storageFolder.name, nativePathToCordova(storageFolder.path), getFilesystemFromPath(storageFolder.path)));
-                                            },
-                                            function () { fail(FileError.NOT_FOUND_ERR); }
-                                        );
-                                    });
-                                }, function () { fail(FileError.INVALID_MODIFICATION_ERR); });
-                            }, function () { fail(FileError.INVALID_MODIFICATION_ERR); });
-                        };
-                        copyFinish(srcPath, parentFullPath);
-                    }, function () {
-                        fail(FileError.NOT_FOUND_ERR);
-                    }
-                );
-            }
-        );
-    },
-
-    moveTo: function (success, fail, args) {
-
-        var srcPath = cordovaPathToNative(args[0]);
-        var parentFullPath = cordovaPathToNative(args[1]);
-        var name = args[2];
-
-
-        //name can't be invalid
-        if (/\?|\\|\*|\||\"|<|>|\:|\//g.test(name)) {
-            fail(FileError.ENCODING_ERR);
-            return;
-        }
-
-        var moveFiles = "";
-        getFileFromPathAsync(srcPath).then(
-            function (sFile) {
-                moveFiles = function (srcPath, parentPath) {
-                    var storageFileTop = null;
-                    getFileFromPathAsync(srcPath).then(function (storageFile) {
-                        storageFileTop = storageFile;
-                        return getFolderFromPathAsync(parentPath);
-                    }, function () {
-                        fail(FileError.NOT_FOUND_ERR);
-                    }).then(function (storageFolder) {
-                        storageFileTop.moveAsync(storageFolder, name, Windows.Storage.NameCollisionOption.replaceExisting).then(function () {
-                            success(new FileEntry(name, nativePathToCordova(storageFileTop.path), getFilesystemFromPath(storageFolder.path)));
-                        }, function () {
-                            fail(FileError.INVALID_MODIFICATION_ERR);
-                        });
-                    }, function () {
-                        fail(FileError.NOT_FOUND_ERR);
-                    });
-                };
-                var moveFinish = function (srcPath, parentPath) {
-                    //can't copy onto itself
-                    if (srcPath == parentPath + "\\" + name) {
-                        fail(FileError.INVALID_MODIFICATION_ERR);
-                        return;
-                    }
-                    moveFiles(srcPath, parentFullPath);
-                };
-                moveFinish(srcPath, parentFullPath);
-            },
-            function () {
-                getFolderFromPathAsync(srcPath).then(
-                    function (sFolder) {
-                        moveFiles = function (srcPath, parentPath) {
-                            var coreMove = function (storageFolderTop, complete) {
-                                storageFolderTop.createFolderQuery().getFoldersAsync().then(function (folderList) {
-                                    var folderPromiseArr = [];
-                                    if (folderList.length === 0) {
-                                        // If failed, we must cancel the deletion of folders & files.So here wo can't delete the folder.
-                                        complete();
-                                    }
-                                    else {
-                                        getFolderFromPathAsync(parentPath).then(function (storageFolderTarget) {
-                                            var tempPromiseArr = [];
-                                            var index = 0;
-                                            for (var j = 0; j < folderList.length; j++) {
-                                                tempPromiseArr[index++] = storageFolderTarget.createFolderAsync(folderList[j].name).then(function (targetFolder) {
-                                                    folderPromiseArr.push(moveFiles(folderList[j].path, targetFolder.path));
-                                                });
-                                            }
-                                            WinJS.Promise.join(tempPromiseArr).then(function () {
-                                                WinJS.Promise.join(folderPromiseArr).then(complete);
-                                            });
-                                        });
-                                    }
-                                });
-                            };
-                            return new WinJS.Promise(function (complete) {
-                                var storageFolderTop = null;
-                                getFolderFromPathAsync(srcPath).then(function (storageFolder) {
-                                    storageFolderTop = storageFolder;
-                                    return storageFolder.createFileQuery().getFilesAsync();
-                                }).then(function (fileList) {
-                                    var filePromiseArr = [];
-                                    getFolderFromPathAsync(parentPath).then(function (dstStorageFolder) {
-                                        if (fileList) {
-                                            for (var i = 0; i < fileList.length; i++) {
-                                                filePromiseArr.push(fileList[i].moveAsync(dstStorageFolder));
-                                            }
-                                        }
-                                        WinJS.Promise.join(filePromiseArr).then(function () {
-                                            coreMove(storageFolderTop, complete);
-                                        }, function () { });
-                                    });
-                                });
-                            });
-                        };
-                        var moveFinish = function (srcPath, parentPath) {
-                            var originFolderTop = null;
-                            getFolderFromPathAsync(srcPath).then(function (originFolder) {
-                                originFolderTop = originFolder;
-                                return getFolderFromPathAsync(parentPath);
-                            }, function () {
-                                fail(FileError.INVALID_MODIFICATION_ERR);
-                            }).then(function (storageFolder) {
-                                return storageFolder.createFolderAsync(name, Windows.Storage.CreationCollisionOption.openIfExists);
-                            }, function () {
-                                fail(FileError.INVALID_MODIFICATION_ERR);
-                            }).then(function (newStorageFolder) {
-                                //can't move onto directory that is not empty
-                                newStorageFolder.createFileQuery().getFilesAsync().then(function (fileList) {
-                                    newStorageFolder.createFolderQuery().getFoldersAsync().then(function (folderList) {
-                                        if (fileList.length !== 0 || folderList.length !== 0) {
-                                            fail(FileError.INVALID_MODIFICATION_ERR);
-                                            return;
-                                        }
-                                        //can't copy onto itself
-                                        if (srcPath == newStorageFolder.path) {
-                                            fail(FileError.INVALID_MODIFICATION_ERR);
-                                            return;
-                                        }
-                                        //can't copy into itself
-                                        if (srcPath == parentPath) {
-                                            fail(FileError.INVALID_MODIFICATION_ERR);
-                                            return;
-                                        }
-                                        moveFiles(srcPath, newStorageFolder.path).then(function () {
-                                            var successCallback = function () {
-                                                success(new DirectoryEntry(name, nativePathToCordova(newStorageFolder.path), getFilesystemFromPath(newStorageFolder.path)));
-                                            };
-
-                                            originFolderTop.deleteAsync().done(successCallback, fail);
-
-                                        }, function () { console.log("error!"); });
-                                    });
-                                });
-                            }, function () { fail(FileError.INVALID_MODIFICATION_ERR); });
-
-                        };
-                        moveFinish(srcPath, parentFullPath);
-                    }, function () {
-                        fail(FileError.NOT_FOUND_ERR);
-                    }
-                );
-            }
-        );
-    },
-    tempFileSystem:null,
-
-    persistentFileSystem:null,
-
-    requestFileSystem: function (win, fail, args) {
-
-        var type = args[0];
-        var size = args[1];
-
-        var filePath = "";
-        var result = null;
-        var fsTypeName = "";
-
-        switch (type) {
-            case LocalFileSystem.TEMPORARY:
-                filePath = Windows.Storage.ApplicationData.current.temporaryFolder.path;
-                fsTypeName = "temporary";
-                break;
-            case LocalFileSystem.PERSISTENT:
-                filePath = Windows.Storage.ApplicationData.current.localFolder.path;
-                fsTypeName = "persistent";
-                break;
-        }
-
-        var MAX_SIZE = 10000000000;
-        if (size > MAX_SIZE) {
-            fail(FileError.QUOTA_EXCEEDED_ERR);
-            return;
-        }
-
-        var fileSystem = new FileSystem(fsTypeName, new DirectoryEntry(fsTypeName, nativePathToCordova(filePath)));
-        result = fileSystem;
-        win(result);
-    },
-
-    resolveLocalFileSystemURI: function (success, fail, args) {
-
-        var uri = cordovaPathToNative(args[0]);
-
-        var path = uri;
-
-        // support for file name with parameters
-        if (/\?/g.test(path)) {
-            path = String(path).split("?")[0];
-        }
-
-        // support for encodeURI
-        if (/\%5/g.test(path)) {
-            path = decodeURI(path);
-        }
-
-        // support for special path start with file:///
-        if (path.substr(0, 8) == "file:///") {
-            path = Windows.Storage.ApplicationData.current.localFolder.path + "\\" + String(path).substr(8);
-        } else {
-            // method should not let read files outside of the [APP HASH]/Local or [APP HASH]/temp folders
-            if (path.indexOf(Windows.Storage.ApplicationData.current.temporaryFolder.path) != 0 &&
-                path.indexOf(Windows.Storage.ApplicationData.current.localFolder.path) != 0) {
-                fail(FileError.NOT_FOUND_ERR);
-                return;
-            }
-        }
-
-        getFileFromPathAsync(path).then(
-            function (storageFile) {
-                success(new FileEntry(storageFile.name, nativePathToCordova(storageFile.path), getFilesystemFromPath(storageFile.path)));
-            }, function () {
-                getFolderFromPathAsync(path).then(
-                    function (storageFolder) {
-                        var cordovaPath = nativePathToCordova(storageFolder.path);
-                        success(new DirectoryEntry(storageFolder.name, cordovaPath, getFilesystemFromPath(storageFolder.path), cordovaPath));
-                    }, function () {
-                        fail(FileError.NOT_FOUND_ERR);
-                    }
-                );
-            }
-        );
-    }
-
-
-};
-
-require("cordova/exec/proxy").add("File",module.exports);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org