@lvce-editor/file-system-worker 5.19.1 → 5.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2005,6 +2005,9 @@ const remove = async dirent => {
|
|
|
2005
2005
|
if (isMemory(dirent)) {
|
|
2006
2006
|
return remove$1(dirent);
|
|
2007
2007
|
}
|
|
2008
|
+
if (isProviderUri(dirent)) {
|
|
2009
|
+
return invoke$2('FileSystem.remove', dirent);
|
|
2010
|
+
}
|
|
2008
2011
|
return remove$2(dirent);
|
|
2009
2012
|
};
|
|
2010
2013
|
const readFile = async uri => {
|
|
@@ -2099,7 +2102,7 @@ const createFile = async uri => {
|
|
|
2099
2102
|
return writeFile$2(uri, '');
|
|
2100
2103
|
};
|
|
2101
2104
|
const writeFile = async (uri, content) => {
|
|
2102
|
-
if (isMemory(uri)) {
|
|
2105
|
+
if (isMemory(uri) || isProviderUri(uri)) {
|
|
2103
2106
|
return invoke$2('FileSystem.writeFile', uri, content);
|
|
2104
2107
|
}
|
|
2105
2108
|
return writeFile$2(uri, content);
|