0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

空白文字を含むファイルパスを指定する方法

Last updated at Posted at 2020-05-10

""でくくるだけ

ターミナル等でパスを指定する際、パス名に空白が含まれる場合

(例
○ /Users/username/"Box Sync"/
✕ /Users/username/Box Sync/

補足

pwdでパスを取得すると、普通に
/Users/username/Box Sync/
と表示されるが、これをこのままコピペしても使えない。上記のように修正する必要がある。
紛らわしい。。

補足2

ターミナルだけでなく、MacのAutomatorでパスを指定する場合も当然同様になるので注意

参考(感謝)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?