diff --git a/BUILD.gn b/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..af0c7ab4989f36f146f596b51f92249b98c5dbd5
--- /dev/null
+++ b/BUILD.gn
@@ -0,0 +1,18 @@
+# Copyright (c) 2021 Huawei Device Co., Ltd.
+# Licensed 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.
+
+import("//build/ohos.gni")
+
+group("libremotefileshare") {
+ deps = [ "//foundation/filemanagement/app_file_service/interfaces/kits/js:remotefileshare" ]
+}
\ No newline at end of file
diff --git a/OAT.xml b/OAT.xml
new file mode 100644
index 0000000000000000000000000000000000000000..b736383c31b96f2c098e45a0ae74575006f4a95d
--- /dev/null
+++ b/OAT.xml
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/README.md b/README.md
deleted file mode 100644
index 65de95fde40ce17feb149cc63b69a029d3f0ab3b..0000000000000000000000000000000000000000
--- a/README.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# storage_app_fileshare_manager
-
-#### Description
-{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
-
-#### Software Architecture
-Software architecture description
-
-#### Installation
-
-1. xxxx
-2. xxxx
-3. xxxx
-
-#### Instructions
-
-1. xxxx
-2. xxxx
-3. xxxx
-
-#### Contribution
-
-1. Fork the repository
-2. Create Feat_xxx branch
-3. Commit your code
-4. Create Pull Request
-
-
-#### Gitee Feature
-
-1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
-2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
-3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
-4. The most valuable open source project [GVP](https://gitee.com/gvp)
-5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
-6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
diff --git a/README_zh.md b/README_ZH.md
similarity index 64%
rename from README_zh.md
rename to README_ZH.md
index 2671214b4cad0415dbc13c8d2544307e59149162..05051acc66006be0281404d6708aa802f5d39477 100644
--- a/README_zh.md
+++ b/README_ZH.md
@@ -13,22 +13,22 @@
## **说明**
### 接口说明
-**表1**应用文件服务接口说明
+**表1** 应用文件服务接口说明
| **接口名** | **说明** |
| --- | --- |
-| createSharePath(fd: number, cid: string, callback: AsyncCallback\): void \| Promise\ | 将文件fd与设备cid传递给分布式文件系统,创建跨设备分享路径 |
+| createSharePath(fd: number, cid: string, callback: AsyncCallback\): void
createSharePath(fd: number, cid: string): Promise\ | 将文件fd与设备cid传递给分布式文件系统,创建跨设备分享路径 |
### 使用说明
-- createSharePath
+createSharePath接口为分享文件fd创建能够跨设备访问的分布式路径,异步返回创建结果,设备号cid用于指定分享设备。
+
+示例:
```
-import remotefileshare from'@ohos.remotefileshare'
+import remotefileshare from '@ohos.remotefileshare'
+
+remotefileshare.createSharePath(fd, cid, function(err, path) {
+ // callback
+});
remotefileshare.createSharePath(fd, cid).then(function(path) {
// promise
});
-
-remotefileshare.createSharePath(fd, cid, function(err, path) {
- // aysnc
-})
-```
-
-## **相关仓**
\ No newline at end of file
+```
\ No newline at end of file
diff --git a/bundle.json b/bundle.json
new file mode 100644
index 0000000000000000000000000000000000000000..93b2a0e87e354e540de48b651721fae76eb6ce85
--- /dev/null
+++ b/bundle.json
@@ -0,0 +1,30 @@
+{
+ "name": "@ohos/app_file_service",
+ "description": "App file service provides sharing and file management for apps",
+ "optional": "false",
+ "version": "3.1",
+ "license": "Apache License 2.0",
+ "publishAs": "code-segment",
+ "segment": {
+ "destPath": "foundation/filemanagement/app_file_service"
+ },
+ "dirs": {},
+ "scripts": {},
+ "component": {
+ "name": "app_file_service",
+ "subsystem": "filemanagement",
+ "syscap": [
+ "SystemCapability.FileManagement.RemoteFileShare"
+ ],
+ "adapted_system_type": [
+ "standard"
+ ],
+ "rom": "",
+ "ram": "",
+ "build": {
+ "sub_component": [
+ "//foundation/filemanagement/app_file_service:libremotefileshare"
+ ]
+ }
+ }
+}
diff --git a/interfaces/kits/js/remote_file_share/remote_file_share.cpp b/interfaces/kits/js/remote_file_share/remote_file_share.cpp
index a36e68752e961818a987ead334899c8f4893fa2c..39b6ed994d4d691ca8f02eee3f657ecd300c1e31 100644
--- a/interfaces/kits/js/remote_file_share/remote_file_share.cpp
+++ b/interfaces/kits/js/remote_file_share/remote_file_share.cpp
@@ -62,9 +62,6 @@ void ExecuteWork(napi_env env, void *data)
std::string packagePath = "/mnt/hmdfs/0/device_view/local/data/com.example.filesharetestcase";
std::string sharePath = packagePath + "/.share";
- if (addonData->status == 0)
- return;
-
dirFd = open(sharePath.c_str(), O_RDONLY);
if (dirFd < 0) {
addonData->status = 0;
diff --git a/ohos.build b/ohos.build
deleted file mode 100644
index 0ce348547370d83db4342255dce2b1d2fc7bf5d4..0000000000000000000000000000000000000000
--- a/ohos.build
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "subsystem": "filemanagement",
- "parts": {
- "app_file_service": {
- "variants": [
- "wearable",
- "phone"
- ],
- "module_list": [
- "//foundation/filemanagement/app_file_service/interfaces/kits/js/:remotefileshare"
- ]
- }
- }
-}
\ No newline at end of file