#!/usr/bin/perl # Silly script to manage files on DAP # Right now just removes .zips use strict; use warnings; use Getopt::Long; ## # Note for M11: # jmtpfs /mnt/android/ ## Mount # fusermount -u /mnt/android ## Umount ## my %args; GetOptions( \%args, 'source-path=s', 'clean-zips', 'dest-path=s', 'exclude-zips', 'sync' ); sub yn_prompt { print "Proceed? [y/n]: "; my $input = ; chomp $input; if ( $input !~ m/^y|^Y/g ) { print "Aborting\n"; exit 0; } } sub print_help { my $help = <