X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FWebdav%2FObject.pm;h=e4ece7969b8f249086c6525095ebc6f582f44cba;hb=d58f0807a72e7a791cded47b057e5f20116ca13f;hp=4ecf423b534227d64cf4a1c8e1244047acc65762;hpb=dc6d82312f264df3d2bf482836ff4fd2bfe3a462;p=kivitendo-erp.git diff --git a/SL/Webdav/Object.pm b/SL/Webdav/Object.pm index 4ecf423b5..e4ece7969 100644 --- a/SL/Webdav/Object.pm +++ b/SL/Webdav/Object.pm @@ -42,6 +42,10 @@ sub full_filedescriptor { File::Spec->catfile($self->webdav->webdav_path, $self->filename); } +sub size { + ($_[0]->stat)[7]; +} + sub atime { DateTime->from_epoch(epoch => ($_[0]->stat)[8]); } @@ -132,6 +136,10 @@ Returns the version string. Returns the extension. +=item C + +wrapped stat[7] + =item C L wrapped stat[8] @@ -148,6 +156,10 @@ Ref to the actual data in raw encoding. URL relative to the web base dir for download. +=item C + +Fully qualified path to file. + =back =head1 SEE ALSO