@lvce-editor/file-system-worker 5.7.0 → 5.8.1
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.
|
@@ -1887,6 +1887,9 @@ const readDirWithFileTypes = async uri => {
|
|
|
1887
1887
|
const getPathSeparator = async root => {
|
|
1888
1888
|
return getPathSeparator$2(root);
|
|
1889
1889
|
};
|
|
1890
|
+
const isReadonly = async uri => {
|
|
1891
|
+
return invoke$1('FileSystem.isReadonly', uri);
|
|
1892
|
+
};
|
|
1890
1893
|
const readJson = async uri => {
|
|
1891
1894
|
if (isHttp(uri)) {
|
|
1892
1895
|
return readJson$3(uri);
|
|
@@ -1988,6 +1991,7 @@ const FileSystemDisk = {
|
|
|
1988
1991
|
getFolderSize,
|
|
1989
1992
|
getPathSeparator,
|
|
1990
1993
|
getRealPath,
|
|
1994
|
+
isReadonly,
|
|
1991
1995
|
mkdir,
|
|
1992
1996
|
readDirWithFileTypes,
|
|
1993
1997
|
readFile,
|
|
@@ -2170,6 +2174,7 @@ const commandMap = {
|
|
|
2170
2174
|
'FileSystem.getPathSeparator': getPathSeparator,
|
|
2171
2175
|
'FileSystem.getRealPath': getRealPath,
|
|
2172
2176
|
'FileSystem.handleMessagePort': handleMessagePort,
|
|
2177
|
+
'FileSystem.isReadonly': isReadonly,
|
|
2173
2178
|
'FileSystem.mkdir': mkdir,
|
|
2174
2179
|
'FileSystem.readDirWithFileTypes': readDirWithFileTypes,
|
|
2175
2180
|
'FileSystem.readFile': readFile,
|