Apache-WebDAV
view release on metacpan or search on metacpan
lib/Apache/WebDAV.pm view on Meta::CPAN
package Apache::WebDAV;
use strict;
use warnings;
our $VERSION = '0.01';
use Apache;
use Apache::Constants qw(:response :http);
use Apache::Util qw(unescape_uri escape_uri);
use Data::Dumper;
use Encode;
use File::Spec;
use File::Find::Rule::Filesys::Virtual;
use URI;
use URI::Escape;
use XML::Simple qw(:strict);
use XML::LibXML;
#
lib/Apache/WebDAV.pm view on Meta::CPAN
my $path = $file->{'path'};
my $stat = $file->{'stat'};
my $resp = $doc->createElement('D:response');
$multistat->addChild($resp);
my $href = $doc->createElement('D:href');
$href->appendText(
File::Spec->catdir(
map { uri_escape encode_utf8 $_ } File::Spec->splitdir($path)
)
);
$resp->addChild($href);
my $okprops = $doc->createElement('D:prop');
foreach my $wanted_prop (keys %$stat)
{
# We set these down there automatically (we are faking quota
( run in 0.251 second using v1.01-cache-2.11-cpan-c21f80fb71c )