From 63b1c2edccb40a54f2d7fd958883ada5a8e6ea57 Mon Sep 17 00:00:00 2001 From: Thibaut Dabonneville Date: Thu, 5 Jan 2006 20:51:49 +0000 Subject: [PATCH] Add a comment, to detail if the Asset is overwritten or added --- sbin/fileImport.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbin/fileImport.pl b/sbin/fileImport.pl index 3c233a5cc..8c319f520 100644 --- a/sbin/fileImport.pl +++ b/sbin/fileImport.pl @@ -218,10 +218,12 @@ sub addFiles { # TB : If the Asset exists, just copy the file. # To be check. my $storage = WebGUI::Storage->get($replaceAssetId); + print "\t\tAsset exists already. Replace the file.\n" unless ($quiet); my $filename = $storage->addFileFromFilesystem("$pathToFiles$slash$file->{relpath}$slash$file->{filename}"); $child->generateThumbnail if ($class eq 'WebGUI::Asset::File::Image'); $child->setSize($storage->getFileSize($filename)); } else { + print "\t\tCreate the new asset.\n" unless ($quiet); my $storage = WebGUI::Storage->create; my $filename = $storage->addFileFromFilesystem("$pathToFiles$slash$file->{relpath}$slash$file->{filename}"); # TB : possibly remove the extension if the ignoreExtInName feature enabled.