Return-Path: william@bourbon.usc.edu Delivery-Date: Wed Nov 19 19:54:31 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id mAK3sUYn004366 for ; Wed, 19 Nov 2008 19:54:30 -0800 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id mAK3pfJG014078 for ; Wed, 19 Nov 2008 19:51:41 -0800 Message-Id: <200811200351.mAK3pfJG014078@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: Project Part 2: Get command Date: Wed, 19 Nov 2008 19:51:41 -0800 From: Bill Cheng Someone wrote: > Or even before we decide to service the Get request, we can do a local check > to see if another file with the same filename exists and if the user wants > to overwrite this file? If the User says Yes Overwrite, then proceed else > just dont do anything. Am I getting something wrong here? You should not do that. If the user is interested in the file, you should retrieve the file so that nodes in the middle of the network has an opportunity to cache the file. If a file is popular, you want it to get copied. -- Bill Cheng // bill.cheng@usc.edu On Wed, Nov 19, 2008 at 2:47 PM, Omkar Govardhan Prabhu wrote: > When we do a "get ", and successfully retrieve a > file, Suppose another file with the same filename exists in the Nodes > Current Working Directory. In this case, the User is asked if he/she "wants > to overwrite the file", right?(Also at this stage there is a file created in > the files directory for e.g. 3.data) > > Now, suppose the user says He DOESNOT want to overwrite the file.So, should > the 3.data in the files directory be deleted and should this node not serve > the file anymore?