Overview
Comment: | [build] bug: forgotten commit |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | build |
Files: | files | file ages | folders |
SHA3-256: |
41af1e680e9d3a01dc744c21f954609e |
User & Date: | olr on 2020-04-05 11:49:53 |
Other Links: | manifest | tags |
Context
2020-04-05
| ||
12:01 | [fr] ajustements check-in: 6e76e2a47e user: olr tags: trunk, fr | |
11:49 | [build] bug: forgotten commit check-in: 41af1e680e user: olr tags: trunk, build | |
11:31 | [fr] ajustements check-in: a4aed19c9b user: olr tags: trunk, fr | |
Changes
Modified helpers.py from [dfd3e5f00c] to [9aa31c58b5].
︙ | ︙ | |||
75 76 77 78 79 80 81 | def moveFolderContent (spSrc, spDst, sPrefix="", bLog=False): "move folder content from <spSrc> to <spDst>: if files already exist in <spDst>, they are replaced. (not recursive)" try: if not os.path.isdir(spSrc): print("Folder <"+spSrc+"> not found. Can’t move files.") return | | | 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | def moveFolderContent (spSrc, spDst, sPrefix="", bLog=False): "move folder content from <spSrc> to <spDst>: if files already exist in <spDst>, they are replaced. (not recursive)" try: if not os.path.isdir(spSrc): print("Folder <"+spSrc+"> not found. Can’t move files.") return if not os.path.isdir(spDst): print("Folder <"+spDst+"> not found. Can’t move files.") return for sf in os.listdir(spSrc): spfSrc = os.path.join(spSrc, sf) if os.path.isfile(spfSrc): spfDst = os.path.join(spDst, sPrefix + sf) shutil.move(spfSrc, spfDst) |
︙ | ︙ |