mirror of
https://gitee.com/openharmony/applications_dlp_manager
synced 2024-11-23 01:49:46 +00:00
Description:readme的图片替换
Match-id-0e5d33a5739cf68f1d815bd8d54480e38bb9a797
This commit is contained in:
parent
f160a78fb7
commit
061babf627
@ -212,7 +212,7 @@ struct changeEncryption {
|
||||
try {
|
||||
uriInfo = new fileUri.FileUri(uri);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'fileUri fail', err.code, err.message)
|
||||
console.log(TAG, 'fileUri fail', err.code, err.message);
|
||||
}
|
||||
try {
|
||||
file = await fs.open(uri, fs.OpenMode.READ_WRITE);
|
||||
@ -222,7 +222,7 @@ struct changeEncryption {
|
||||
try {
|
||||
await fs.unlink(uriInfo.path);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'unlink fail', err.code, err.message)
|
||||
console.log(TAG, 'unlink fail', err.code, err.message);
|
||||
}
|
||||
this.showErrorDialog($r('app.string.TITLE_APP_ERROR') as any,$r('app.string.MESSAGE_APP_INSIDE_ERROR') as any);
|
||||
await this.catchProcess();
|
||||
@ -236,12 +236,12 @@ struct changeEncryption {
|
||||
try {
|
||||
await fs.close(file);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'close fail', err.code, err.message)
|
||||
console.log(TAG, 'close fail', err.code, err.message);
|
||||
}
|
||||
try {
|
||||
await fs.unlink(uriInfo.path);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'unlink fail', err.code, err.message)
|
||||
console.log(TAG, 'unlink fail', err.code, err.message);
|
||||
}
|
||||
let errorInfo = getAlertMessage(
|
||||
err, $r('app.string.TITLE_SERVICE_ERROR'), $r('app.string.MESSAGE_RECOVER_DLP_ERROR'));
|
||||
@ -253,7 +253,7 @@ struct changeEncryption {
|
||||
try {
|
||||
await fs.close(file);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'close fail', err.code, err.message)
|
||||
console.log(TAG, 'close fail', err.code, err.message);
|
||||
}
|
||||
if (globalThis.requestIsFromSandBox) { //no need close dlp file in sandbox
|
||||
try {
|
||||
|
@ -398,7 +398,7 @@ struct DlpDialog {
|
||||
try {
|
||||
uriInfo = new fileUri.FileUri(uri);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'fileUri fail', err.code, err.message)
|
||||
console.log(TAG, 'fileUri fail', err.code, err.message);
|
||||
}
|
||||
try {
|
||||
file = await fs.open(uri, fs.OpenMode.READ_WRITE);
|
||||
@ -408,7 +408,7 @@ struct DlpDialog {
|
||||
try {
|
||||
await fs.unlink(uriInfo.path);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'unlink fail', err.code, err.message)
|
||||
console.log(TAG, 'unlink fail', err.code, err.message);
|
||||
}
|
||||
this.showErrorDialog($r('app.string.TITLE_APP_ERROR') as any, $r('app.string.MESSAGE_APP_INSIDE_ERROR') as any);
|
||||
this.processing = false;
|
||||
@ -461,12 +461,12 @@ struct DlpDialog {
|
||||
try {
|
||||
await fs.close(file);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'close fail', err.code, err.message)
|
||||
console.log(TAG, 'close fail', err.code, err.message);
|
||||
}
|
||||
try {
|
||||
await fs.unlink(uriInfo.path);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'unlink fail', err.code, err.message)
|
||||
console.log(TAG, 'unlink fail', err.code, err.message);
|
||||
}
|
||||
let errorInfo = getAlertMessage(err, $r('app.string.TITLE_SERVICE_ERROR'), $r('app.string.MESSAGE_GENERATE_DLP_ERROR'));
|
||||
this.showErrorDialog(errorInfo.title, errorInfo.msg);
|
||||
|
@ -169,7 +169,7 @@ struct Sa {
|
||||
try {
|
||||
await fs.close(file);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'close fail', err.code, err.message)
|
||||
console.log(TAG, 'close fail', err.code, err.message);
|
||||
}
|
||||
await globalThis.dsHelper.delete(uri);
|
||||
this.isOK = false;
|
||||
@ -188,7 +188,7 @@ struct Sa {
|
||||
try {
|
||||
await fs.close(file);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'close fail', err.code, err.message)
|
||||
console.log(TAG, 'close fail', err.code, err.message);
|
||||
}
|
||||
await globalThis.dsHelper.delete(uri);
|
||||
fs.closeSync(srcFd);
|
||||
@ -204,7 +204,7 @@ struct Sa {
|
||||
try {
|
||||
await fs.close(file);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'close fail', err.code, err.message)
|
||||
console.log(TAG, 'close fail', err.code, err.message);
|
||||
}
|
||||
await globalThis.dsHelper.delete(uri);
|
||||
fs.closeSync(srcFd);
|
||||
@ -228,7 +228,7 @@ struct Sa {
|
||||
try {
|
||||
await fs.close(file);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'close fail', err.code, err.message)
|
||||
console.log(TAG, 'close fail', err.code, err.message);
|
||||
}
|
||||
await globalThis.dsHelper.delete(uri);
|
||||
fs.closeSync(srcFd);
|
||||
@ -264,7 +264,7 @@ struct Sa {
|
||||
try {
|
||||
await fs.close(file);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'close fail', err.code, err.message)
|
||||
console.log(TAG, 'close fail', err.code, err.message);
|
||||
}
|
||||
return;
|
||||
}).catch(async (err) => {
|
||||
@ -272,7 +272,7 @@ struct Sa {
|
||||
try {
|
||||
await fs.close(file);
|
||||
} catch (err) {
|
||||
console.log(TAG, 'close fail', err.code, err.message)
|
||||
console.log(TAG, 'close fail', err.code, err.message);
|
||||
}
|
||||
await globalThis.dsHelper.delete(uri);
|
||||
this.isOK = false;
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 15 KiB |
Loading…
Reference in New Issue
Block a user