View Single Post
Old 04-28-2013, 07:41 AM  
MONGi
Member
 
Join Date: May 2012
Posts: 71
Default

Quote:
Originally Posted by MONGi View Post
Hello,

i have a new question:

I want to move one or more folders with the entire contents after a certain time (f.e. 1day).
From I:/Test1 to I:/Test2

My Code:
Code:
  
    <task>
    <status>Enabled</status>
    <actionType>MOVE</actionType>
    <source>I:\\Test1</source>
    <destination>I:\\Test2</destination>
    <action id="DateOlder">
      <value>1</value>
      <minFolderAction>1</minFolderAction>
    </action>
  </Task>
My LOG:
Code:
[2013-04-28 11:22:18] Archive...
[2013-04-28 11:22:18] Assembly.GetExecutingAssembly().Location: ['D:\ioFTPD\scripts\jeza.ioFTPD.ArchiveScript\jeza.ioFTPD.Framework.dll']
[2013-04-28 11:22:18] System.InvalidOperationException: There is an error in XML document (156, 6). ---> System.InvalidOperationException: Instance validation error: 'MOVE' is not a valid value for ArchiveType.
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTaskConfiguration.Read1_ArchiveType(String s)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTaskConfiguration.Read6_ArchiveTask(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTaskConfiguration.Read13_TaskConfiguration(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTaskConfiguration.Read14_tasks()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
   at jeza.ioFTPD.Framework.Extensions.Deserialize[T](T xmlObject, String fileName, String defaultNamespace) in D:\jezatools\googlecode\trunk\ioFTPD\jeza.ioFTPD.Framework\Extensions.cs:line 362
   at jeza.ioFTPD.Framework.ConsoleAppTasks.ParseConfig() in D:\jezatools\googlecode\trunk\ioFTPD\jeza.ioFTPD.Framework\ConsoleAppTasks.cs:line 42
   at jeza.ioFTPD.Archive.Program.Main()
What exactly I am doing wrong?

Thanks for all answer

Greetings,
Mongi
Hello,

i'm so stupid...ive changed only "MOVE" to "Move" and all work fine.

Thanks
MONGi is offline   Reply With Quote