跳转到主内容

如何还原文件路径中包含 " 空格 " 的单个文件?

Views:
11
Visibility:
Public
Votes:
0
Category:
snaprestore
Specialty:
dp
Last Updated:

适用场景

  • ONTAP 9.x
  • SnapRestore
  • Snapshot

问题描述

  • 文件路径中可能包含空格字符
  • 空格不符合任何文件系统使用的最佳实践,请改用 "_"
  • 示例: /vol/vol_test_1/New Folder/test.txt
  • 列出此文件可能会失败,并显示以下错误:

::> set advanced
::*> node run -node <node_name> -command "ls /vol/vol_test_1/New Folder"
/vol/vol_test_1/New: Can't open directory: No such file or directory

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.