title: Changing directory of FTP server (ftplib, pyftpdlib)
body: <p>I am attempting to create client/server FTP via Python libraries <code>pyftpdlib</code> and <code>ftplib</code>.</p>
  
  <p>I have created a server as follows:</p>
  
  <pre><code>from pyftpdlib.authorizers import DummyAuthorizer
  from pyftpdlib.handlers import FTPHandler
  from pyftpdlib.servers import FTPServer
  import os
  
  authorizer = DummyAuthorizer()
  authorizer.add_user("user", "12345", ".",  perm="elradfmw")
  authorizer.add_anonymous(os.getcwd())
  
  handler = FTPHandler
  handler.authorizer = authorizer
  
  address = ('',1024)
  server = FTPServer((address), handler)
  server.serve_forever()
  </code></pre>
  
  <p>I connect to the server:</p>
  
  <pre><code>from ftplib import FTP
  import os
  ftp = FTP('')
  ftp.connect('localhost',1024)
  ftp.login(user='user', passwd = '12345')
  </code></pre>
  
  <p>Which I am able to do as the python console outputs a message "login successful".</p>
  
  <p>Now the problem is I am not sure which directory I am in and how to change directories.</p>
  
  <p>If I use <code>print(ftp.pwd())</code> I get back:</p>
  
  <pre><code>'/'
  </code></pre>
  
  <p>Which on Windows is not making much sense to me.</p>
  
  <p>I am  assuming it's <code>C:\</code> but If I try to change directories,</p>
  
  <p>to </p>
  
  <pre><code>ftp.cwd(r"/Users/Moondra/Desktop/")
  ftp.cwd(r"Users\Moondra\Desktop")
  ftp.cwd(r"\Users\Moondra\Desktop")
  </code></pre>
  
  <p>I get:</p>
  
  <blockquote>
    <p>ftplib.error_perm: 550 No such file or directory.</p>
  </blockquote>
  
  <p>So why am I having trouble changing my directory?</p>