Changeset 706d308 in trunk
- Timestamp:
- 2020-12-14T20:42:51Z (4 years ago)
- Branches:
- master
- Children:
- bf799c1
- Parents:
- ca5a642
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/util/configutil.py ¶
rca5a642 r706d308 67 67 Write a configuration to a file. 68 68 69 :param FilePath tahoe_cfg: The path to which to write the config. 69 :param FilePath tahoe_cfg: The path to which to write the 70 config. The directories are created if they do not already exist. 70 71 71 72 :param ConfigParser config: The configuration to write. … … 74 75 """ 75 76 tmp = tahoe_cfg.temporarySibling() 77 try: 78 tahoe_cfg.parent().makedirs() 79 except OSError: 80 pass 76 81 # FilePath.open can only open files in binary mode which does not work 77 82 # with ConfigParser.write.
Note: See TracChangeset
for help on using the changeset viewer.