Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Project 3 Chronojohn

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
kurt



Joined: Thu Mar 25, 2010 1:59 am
Posts: 1

PostPosted: Thu Mar 25, 2010 12:31 pm    Post subject: Project 3 Chronojohn Reply with quote

I finished up Project three with what appears to be with no problems. I can
issue : /bin/Debug$: ./Chronojohn.exe /home/kpas/Test and back up my files.

06:45 one.129139873560000000
06:59 one.129139883630000000
08:10 one.129139926160000000
06:45 three.129139873640000000
08:10 three.129139926050000000
06:45 two.129139873600000000
08:10 two.129139925870000000

However, when I run: /bin/Debug$ ./Chronojohn.exe list I get the output below.

Unhandled Exception: System.IO.DirectoryNotFoundException: Directory 'list' not found.
at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000]
at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000]
at System.IO.Directory.GetFiles (System.String path) [0x00000]
at Chronojohn.MainClass.CheckDirectory (System.String directory) [0x00000]
at Chronojohn.MainClass.Main (System.String[] args) [0x00000]
kpas@mars:~/Projects/Chronojohn/Chronojohn/bin/Debug$

When I run the following command I get nothing printed to the screen.

bin/Debug$ ./Chronojohn.exe list /home/kpas/Test
/bin/Debug$
/bin/Debug$ ./Chronojohn.exe list /home/kpas/Test/
/bin/Debug$

But I get the following output when I run ./Chronojohn

Chronojohn: a backup tool Kurt would have been pround of.

add /some/directory Scan directory and backup changed files
list /some/file List all backup of a given file
restore /some/file <ver> Restore file to specific version

I compared the CD version to what I did in mono but could not find any differences.

Any suggestions would greatly be appreciated.

Thanks,

Kurt
Back to top
View user's profile Send private message
sciso



Joined: Mon Jul 19, 2010 10:27 pm
Posts: 1
Location: N.Ireland

PostPosted: Mon Jul 19, 2010 10:52 pm    Post subject: Reply with quote

Hey I'm stuck on Chronojohn myself but if your program is trying 2 backup the non existent /list directory id suggest the line
Code:
ListBackups(args[1]);
may be
Code:
ListBackups(args[0]);
in your program, that would be the hardest to spot kind of mistake for me anyway.
If not then gl ive got my own hair to replace
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast