Skip to content

Instantly share code, notes, and snippets.

@koda1017
Created December 24, 2019 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koda1017/38937883cae62c9f9369d70a12616d6b to your computer and use it in GitHub Desktop.
Save koda1017/38937883cae62c9f9369d70a12616d6b to your computer and use it in GitHub Desktop.
import sys
from pathlib import Path
if __name__ == '__main__':
args = sys.argv
dir_name = args[1]
p = Path(dir_name)
p.mkdir()
p /= dir_name + '.go'
p.touch()
@koda1017
Copy link
Author

Create directory and go file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment