mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Forward port of 1.12.14.3 (which has an incorrect log message):
if SetDates() in touched() returns an error ignore it: the user may not have permission to change the parent folder. This is a non-serious problem, the only function of touched() is to speed up the finder seeing the change.
This commit is contained in:
		
							parent
							
								
									2c9590f625
								
							
						
					
					
						commit
						37e477216b
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -71,7 +71,10 @@ def touched(dst): | |||
| 	now = time.time() | ||||
| 	if now == moddate: | ||||
| 		now = now + 1 | ||||
| 	dir_fss.SetDates(crdate, now, bkdate) | ||||
| 	try: | ||||
| 		dir_fss.SetDates(crdate, now, bkdate) | ||||
| 	except macfs.error: | ||||
| 		pass | ||||
| 	 | ||||
| def touched_ae(dst): | ||||
| 	"""Tell the finder a file has changed""" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jack Jansen
						Jack Jansen