=?windows-1256?q?Patch_for_copy_files=3A_newer/quiet_?= =?windows-1256?q?behaviour=FE?=

Rodney Padgett <[email protected]> Mon, 14 Mar 2011 21:19:16 +0000
Newsgroups gmane.comp.desktop.rox.devel
Message-ID <[email protected]>
--_343a28e6-15df-4d35-9733-e33feb71a5e1_
Content-Type: multipart/alternative;
	boundary="_fcf8ba60-a201-4e86-8c3a-5474800f10e2_"

--_fcf8ba60-a201-4e86-8c3a-5474800f10e2_
Content-Type: text/plain; charset="windows-1256"
Content-Transfer-Encoding: 8bit


Hello,
Here is a patch to change the behaviour of the newer and quiet options when copying files. Currently, when copying files to an existing directory, you get prompted to confirm the copy for every existing 
file even if newer or quiet is selected. This might not be expected by the user - there needs to be a way of forcing overwrites on a large number of existing files without prompting, and quiet would be 
assumed to do that. This patch changes the behaviour to:

1. If Newer is selected then only attempt to copy newer files over existing files; if quiet is NOT selected, still ask for confirmation before copy
2. If Quiet is selected, don't ask for any confirmation under any circumstances.

This fixes the 'bug' reported in the user mail list: Copy options not working properly

Kind Regards,

Rod.

 		 	   		  
--_fcf8ba60-a201-4e86-8c3a-5474800f10e2_
Content-Type: text/html; charset="windows-1256"
Content-Transfer-Encoding: 8bit

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hello,<br>Here is a patch to change the behaviour of the newer and quiet options when copying files. Currently, when copying files to an existing directory, you get prompted to confirm the copy for every existing <br>file even if newer or quiet is selected. This might not be expected by the user - there needs to be a way of forcing overwrites on a large number of existing files without prompting, and quiet would be <br>assumed to do that. This patch changes the behaviour to:<br><br>1. If Newer is selected then only attempt to copy newer files over existing files; if quiet is NOT selected, still ask for confirmation before copy<br>2. If Quiet is selected, don't ask for any confirmation under any circumstances.<br><br>This fixes the 'bug' reported in the user mail list: Copy options not work
 ing properly<br><br>Kind Regards,<br><br>Rod.<br><br> 		 	   		  </body>
</html>
--_fcf8ba60-a201-4e86-8c3a-5474800f10e2_--

--_343a28e6-15df-4d35-9733-e33feb71a5e1_
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="0001-Don-t-ask-questions-on-copy-if-quiet-is-selected.patch"

RnJvbSBkNmMzMjRlNGNmNjIwMzRiZWEwZGYzZmExYWEwM2Y0NTQ2YTc3ZjMwIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBSb2RuZXkgUGFkZ2V0dCA8cm9kX3BhZGdldHRAaG90bWFpbC5j
b20+CkRhdGU6IE1vbiwgMTQgTWFyIDIwMTEgMjA6MDc6MjEgKzAwMDAKU3ViamVjdDogW1BBVENI
XSBEb24ndCBhc2sgcXVlc3Rpb25zIG9uIGNvcHkgaWYgcXVpZXQgaXMgc2VsZWN0ZWQKCldoZW4g
Y29weWluZyBmaWxlcyBvdmVyIGFuIG9sZCBkaXJlY3RvcnksIHRoZSBjb25maXJtYXRpb24gZm9y
IG92ZXJ3aXRlL21lcmdlIGV4aXN0aW5nIGFwcGVhcmVkLCBldmVuIGlmIHF1aWV0IHdhcyBzZWxl
Y3RlZC4gVGhpcyBwYXRjaCBjaGFuZ2VzIHRoYXQgYmVoYXZpb3VyOgpJZiBOZXdlciBpcyBzZWxl
Y3RlZCB0aGVuIG9ubHkgYXR0ZW1wdCB0byBjb3B5IG5ld2VyIGZpbGVzIG92ZXIgZXhpc3Rpbmcg
ZmlsZXM7IGlmIHF1aWV0IGlzIE5PVCBzZWxlY3RlZCwgc3RpbGwgYXNrIGZvciBjb25maXJtYXRp
b24gYmVmb3JlIGNvcHkKSWYgUXVpZXQgaXMgc2VsZWN0ZWQsIGRvbid0IGFzayBmb3IgYW55IGNv
bmZpcm1hdGlvbiB1bmRlciBhbnkgY2lyY3Vtc3RhbmNlcy4KLS0tCiBST1gtRmlsZXIvc3JjL2Fj
dGlvbi5jIHwgICAxNCArKysrKysrKysrLS0tLQogMSBmaWxlcyBjaGFuZ2VkLCAxMCBpbnNlcnRp
b25zKCspLCA0IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL1JPWC1GaWxlci9zcmMvYWN0aW9u
LmMgYi9ST1gtRmlsZXIvc3JjL2FjdGlvbi5jCmluZGV4IDcxNzk1MTkuLjg3ODI4MzMgMTAwNjQ0
Ci0tLSBhL1JPWC1GaWxlci9zcmMvYWN0aW9uLmMKKysrIGIvUk9YLUZpbGVyL3NyYy9hY3Rpb24u
YwpAQCAtMTMzMCwxMSArMTMzMCwxNyBAQCBzdGF0aWMgdm9pZCBkb19jb3B5Mihjb25zdCBjaGFy
ICpwYXRoLCBjb25zdCBjaGFyICpkZXN0KQogCiAJCW1lcmdlID0gU19JU0RJUihpbmZvLnN0X21v
ZGUpICYmIFNfSVNESVIoZGVzdF9pbmZvLnN0X21vZGUpOwogCi0JCWlmICghbWVyZ2UgJiYgb19u
ZXdlciAmJiBpbmZvLnN0X210aW1lID4gZGVzdF9pbmZvLnN0X210aW1lKQorCQlpZiAob19uZXdl
ciAmJiAhbWVyZ2UpCiAJCXsKLQkJCS8qIE5ld2VyOyBrZWVwIGdvaW5nICovCi0JCX0KLQkJZWxz
ZQorCQkJaWYgKGluZm8uc3RfbXRpbWUgPiBkZXN0X2luZm8uc3RfbXRpbWUpCisJCQl7CisJCQkJ
LyogTmV3ZXI7IGtlZXAgZ29pbmcgKi8KKwkJCX0KKwkJCWVsc2UKKwkJCQlyZXR1cm47IC8qIE9s
ZGVyIG9yIHNhbWUgLSBkb24ndCBjb3B5ICovCisJCX0gCisJCQorCQlpZiAoIXF1aWV0KQogCQl7
CiAJCQlwcmludGZfc2VuZCgiPCVzIiwgcGF0aCk7CiAJCQlwcmludGZfc2VuZCgiPiVzIiwgZGVz
dF9wYXRoKTsKLS0gCjEuNy40LjEKCg==

--_343a28e6-15df-4d35-9733-e33feb71a5e1_
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
--_343a28e6-15df-4d35-9733-e33feb71a5e1_
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
rox-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rox-devel

--_343a28e6-15df-4d35-9733-e33feb71a5e1_--