Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #138 in SAT/falcon from feature/TAG-2250-dazzler-s…
Browse files Browse the repository at this point in the history
…ub-commands-with-datander to develop

* commit 'ec1d06def82c9b8410e03cf0689363f2bb520c30':
  Add dazzler sub-commands for split/apply/combine strategy
  Fix any relative input paths in generic_scatter_one and generic_run
  Add rm_force()
  Relax NPROC for build_rdb/pdb
  • Loading branch information
Christopher Dunn committed Apr 24, 2018
2 parents f1a2942 + ec1d06d commit 64208e5
Show file tree
Hide file tree
Showing 7 changed files with 1,204 additions and 96 deletions.
13 changes: 11 additions & 2 deletions falcon_kit/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,15 @@ def yield_abspath_from_fofn(fofn_fn):
raise


def rmdirs(*dirnames):
for d in dirnames:
assert os.path.normpath(d.strip()) not in ['.', '', '/']
syscall('rm -rf {}'.format(' '.join(dirnames)))

def rmdir(d):
assert os.path.normpath(d.strip()) not in ['.', '', '/']
syscall('rm -rf {}'.format(' '.join(d)))
rmdirs(d)

def rm_force(*fns):
for fn in fns:
if os.path.exists(fn):
os.unlink(fn)
Loading

0 comments on commit 64208e5

Please sign in to comment.