| 1 | initial version |
You can use os.mkdir:
sage: !ls -la
total 8
drwxrwxr-x 2 mcneil mcneil 4096 Aug 21 12:24 .
drwxr-xr-x 88 mcneil mcneil 4096 Aug 21 12:24 ..
sage: s = "somedirectoryname"
sage: os.mkdir(s)
sage: !ls -la
total 12
drwxrwxr-x 3 mcneil mcneil 4096 Aug 21 12:24 .
drwxr-xr-x 88 mcneil mcneil 4096 Aug 21 12:24 ..
drwxrwxr-x 2 mcneil mcneil 4096 Aug 21 12:24 somedirectoryname
| 2 | No.2 Revision |
You can use os.mkdir: (see docs here):
sage: !ls -la
total 8
drwxrwxr-x 2 mcneil mcneil 4096 Aug 21 12:24 .
drwxr-xr-x 88 mcneil mcneil 4096 Aug 21 12:24 ..
sage: s = "somedirectoryname"
sage: os.mkdir(s)
sage: !ls -la
total 12
drwxrwxr-x 3 mcneil mcneil 4096 Aug 21 12:24 .
drwxr-xr-x 88 mcneil mcneil 4096 Aug 21 12:24 ..
drwxrwxr-x 2 mcneil mcneil 4096 Aug 21 12:24 somedirectoryname
| 3 | No.3 Revision |
You can use os.mkdir (see docs here):
sage: !ls -la -a total 8
drwxrwxr-x . 2 mcneil mcneil 4096 Aug 21 12:24 .
drwxr-xr-x 88 mcneil mcneil 4096 Aug 21 12:24 ..
sage: s = "somedirectoryname"
sage: os.mkdir(s)
sage: !ls -la -a total 12
drwxrwxr-x . 3 mcneil mcneil 4096 Aug 21 12:24 .
drwxr-xr-x 88 mcneil mcneil 4096 Aug 21 12:24 ..
drwxrwxr-x .. 2 mcneil mcneil 4096 Aug 21 12:24 somedirectoryname
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.