URL处理程序多个目录

时间:2013-05-06 13:15:29

标签: google-app-engine

File Structure

 ROOT
    - app.yaml
    - flashfolder/bin-release
                  -sfx
                  -maps
                  -resources

我试过了,

- url: /flashFolder/bin-release/*(.*\.(gif|png|jpg|ico|js|css|swf|xml|tmx|mp3))
  static_dir: \1
  upload: static/flashFolder/bin-release/(.*\.(gif|png|jpg|ico|js|css|swf|xml|tmx|mp3))

- url: /flashFolder/bin-release/*(.*\.(gif|png|jpg|ico|js|css|swf|xml|tmx|mp3))
  static_files: \1
  upload: static/flashFolder/bin-release/(.*\.(gif|png|jpg|ico|js|css|swf|xml|tmx|mp3))

- url: /flashFolder/bin-release/
  static_dir: \1

任何人都有一个解释URL处理程序的链接,除了Google提供的内容之外,python就在我的头上。

我只想上传bin-release中的所有文件夹及其内容,而无需专门映射它们。我可以在bin-release地图中扔一张外卡吗?

1 个答案:

答案 0 :(得分:0)

尝试:

- url: /flashFolder/bin-release/
  static_dir: flashFolder/bin-release/

除非您确实需要根据文件扩展名进行过滤