---
# System prepended metadata

title: Linux環境取得檔案目錄分割字元/ \
tags: [C#]

---

# Linux環境取得檔案目錄分割字元/ \
###### tags: `C#`

``` C#
Path.DirectorySeparatorChar
```

You can use the `Path.DirectorySeparatorChar` constant
which will be either `\` or `/`
