Skip to content

Instantly share code, notes, and snippets.

@yuanqing
Last active August 29, 2015 14:04
Show Gist options
  • Save yuanqing/3814bf30367017a30448 to your computer and use it in GitHub Desktop.
Save yuanqing/3814bf30367017a30448 to your computer and use it in GitHub Desktop.
File/Directory Terminology
# File
- filePath: '/foo/bar/baz.qux'
- fileName: 'baz.qux'
- dirPath: '/foo/bar'
- dirName: 'bar'
- baseName: 'baz'
- extension: 'qux'
# Directory
- filePath: '/foo/bar/baz'
- fileName: 'baz'
- dirPath: '/foo/bar'
- dirName: 'bar'
- baseName: 'baz'
- extension: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment