App-DownloadsDirUtils

 view release on metacpan or  search on metacpan

script/mv-newest-download-here  view on Meta::CPAN

#!perl

# Note: This script is a CLI for Riap function /App/DownloadsDirUtils/mv_newest_download_here
# and generated automatically using Perinci::CmdLine::Gen version 0.502

use 5.010001;
use strict;
use warnings;
use Log::ger;

use Perinci::CmdLine::Any;

our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2025-05-03'; # DATE
our $DIST = 'App-DownloadsDirUtils'; # DIST
our $VERSION = '0.008'; # VERSION

my $cmdline = Perinci::CmdLine::Any->new(
    url => "/App/DownloadsDirUtils/mv_newest_download_here",
    program_name => "mv-newest-download-here",
    log => 1,
    log_level => "info",
    config_filename => "downloadsdirutils.ini",
);

$cmdline->run;

# ABSTRACT: Move the newest file(s) from the downloads directories to current directory
# PODNAME: mv-newest-download-here

__END__

=pod

=encoding UTF-8

=head1 NAME

mv-newest-download-here - Move the newest file(s) from the downloads directories to current directory

=head1 VERSION

This document describes version 0.008 of mv-newest-download-here (from Perl distribution App-DownloadsDirUtils), released on 2025-05-03.

=head1 SYNOPSIS

B<mv-newest-download-here> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<mv-newest-download-here> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<mv-newest-download-here> [B<L<--all|/"--all, -a">>|B<L<-a|/"--all, -a">>] [B<L<--as|/"--as=s">>=I<L<pathname::unix::basename|Sah::Schema::pathname::unix::basename>>] [B<L<--config-path|/"--config-path=s, -c">>=I<path>|B<L<-c|/"--config-path=s, -c">...

=head1 DESCRIPTION

This is a thin wrapper for the L<newest-download> utility; the wrapper
moves the files to current directory. It hopes to be a convenient helper to
organize your downloads.

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--as>=I<s>

Rename file.

=item B<--num-ranks>=I<s>, B<-N>

Number of ranks to return.

Difference between C<num_results> and C<num_ranks>: C<num_results> (C<-n> option)
specifies number of results regardless of ranks while C<num_ranks> (C<-N> option)
returns number of ranks. For example, if sorting is by reverse size and if
C<num_results> is set to 1 and there are 2 files with the same largest size then
only 1 of those files will be returned. With C<num_ranks> set to 1, both files
will be returned because are they both rank #1.


=item B<--num-results>=I<s>, B<-n>

Number of results to return.

=item B<--overwrite>, B<-O>

(No description)


=item B<--to-dir>=I<s>

Default value:

 "."

=back

=head2 Configuration options

=over

=item B<--config-path>=I<s>, B<-c>

Set path to configuration file.

Can actually be specified multiple times to instruct application to read from
multiple configuration files (and merge them).




( run in 1.711 second using v1.01-cache-2.11-cpan-64ef6c95b5d )