(x)
| 12 | |
| 13 | |
| 14 | def check_ratio(x): |
| 15 | try: |
| 16 | x = float(x) |
| 17 | except ValueError: |
| 18 | raise argparse.ArgumentTypeError("%r not a floating-point literal" % (x,)) |
| 19 | |
| 20 | if x < 0.0 or x > 1.0: |
| 21 | raise argparse.ArgumentTypeError("%r not in range [0.0, 1.0]" % (x)) |
| 22 | return x |
| 23 | |
| 24 | |
| 25 | desc = "Script to move specified number of files(given in ratio) from the src directory to dest directory." |
nothing calls this directly
no outgoing calls
no test coverage detected