public void Checkin(string path)
{
if (!File.Exists (path)) {
Console.WriteLine ("File {0} doesn't exist", path);
return;
}
// Its a tree
if (Directory.Exists (path)) {
throw new NotImplementedException ("This is not implemented yet");
return;
}
// its a blob
FileStream fs = File.Open (path, FileMode.Open, FileAccess.Read);
byte[] content = new byte[(int) fs.Length];
fs.Read (content, 0, (int) content.Length);
fs.Close ();
Blob blob = new Blob (content);
AddToQueue (blob);
}