mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Added cwd()
This commit is contained in:
		
							parent
							
								
									605b127ff3
								
							
						
					
					
						commit
						02cf582e73
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -303,6 +303,10 @@ class FTP:
 | 
			
		|||
			raise error_reply, resp
 | 
			
		||||
		self.voidcmd('RNTO ' + toname)
 | 
			
		||||
 | 
			
		||||
	# Change to a directory
 | 
			
		||||
	def cwd(self, dirname):
 | 
			
		||||
		self.voidcmd('CWD ' + dirname)
 | 
			
		||||
 | 
			
		||||
	# Make a directory, return its full pathname
 | 
			
		||||
	def mkd(self, dirname):
 | 
			
		||||
		resp = self.sendcmd('MKD ' + dirname)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue