File: fsmkdir.py

package info (click to toggle)
python-fs 0.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,452 kB
  • ctags: 2,991
  • sloc: python: 20,659; makefile: 5
file content (22 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python
from fs.commands.runner import Command
import sys

class FSMkdir(Command):
    
    usage = """fsmkdir [PATH]
Make a directory"""

    version = "1.0"
    
    def do_run(self, options, args):
                
        for fs_url in args:                    
            self.open_fs(fs_url, create_dir=True)                        
    
def run():
    return FSMkdir().run()
    
if __name__ == "__main__":
    sys.exit(run())