title: We have deployed the Flask application on the Apache server. But this is not working as we expected The problem is described below
body: <p>We have deployed the Flask application on the Apache server. If I run the Flask app directly it will create a folder on the remote machine but if I run the same code on the Apache server it will give an error like access dined("PermissionError: [WinError 5] Access is denied: '\remotemachinename\test'\r, referer: <a href="http://localhost:8080/home" rel="nofollow noreferrer">http://localhost:8080/home</a>").</p>
  
  <pre><code>from flask import Flask
  import os
  app = Flask(__name__)
  
  @app.route('/hello/&lt;name&gt;')
  def hello_world(name):
      Folder_name = "\\\\remotemachinename\\{}".format(name)
      if os.path.exists(Folder_name):
          return folder_exists_message
      os.mkdir(Folder_name)
  
  if __name__ == '__main__':
      app.run(host='0.0.0.0')
  </code></pre>
  
  <p>can you please help me to fix this issue.</p>