You can set a symbolic link to point to a frequently accessed object in the target bucket for easier object retrieval. After setting a symbolic link for an object, you can use the symbolic link to quickly access the object. A symbolic link works in a similar manner as the shortcut in Windows.
- Log on to the OSS console.
- In the left-side bucket list, click the name of the bucket where the target object is stored, and then click the Files tab.
- Find the object for which you want to set a symbolic link, and then select on the right of the object.
- In the Set soft link dialog box, enter a name for the symbolic link file and click OK.
- Source file (full path): The full path of the current object is displayed here.
- Soft link file: Enter a name for the symbolic link that conforms to the symbolic link naming conventions. You can use a slash (/) to add a file path when entering the symbolic link file name.
Notice If the symbolic link file does not include a suffix that indicates the file type, for example, the symbolic link file name of the source file myphoto.jpg is named as myphoto, you can open the symbolic link file in the console or by accessing its URL. However, if you want to download the symbolic link file, a suffix that indicates the file type must be added in the file name.
- If you do not add the file path, you can directly enter a customized symbolic link file name. For example: If the complete source file path is user/myphoto/myphoto.jpg, you can name the symbolic link file as myphoto or myphoto.jpg. Then, the symbolic link file is stored in the root directory.
- If you add a file path, you can use a slash (/) to add the file path when entering the name of a symbolic link file. For example: If the complete source file path is user/myphoto/myphoto.jpg, you can name the symbolic link file as shortcut/myphoto or shortcut/myphoto.jpg. Then, the symbolic link file is stored in the shortcut directory.