Module Expr Str Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad NameStore body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad Str NameStore body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
    flask_storage.local
    ~~~~~~~~~~~~~~~~~~~

    Local storage, save the file in local directory.

    :copyright: (c) 2013 Hsiaoming Yang.
 N/A os _compat to_bytes _base BaseStorage UploadFileExists _utils ConfigItem LocalStorage N/A BaseStorage N/A N/A Storage for local filesystem.

    Configuration:

        - base_dir: save file in base dir
        - base_url: base url root
     N/A root N/A ConfigItem base_dir exists N/A N/A self filename N/A N/A N/A Detect if the file exists.

        :param filename: name of the file.
         N/A dest N/A N/A N/A os path join N/A self root filename N/A N/A N/A N/A os path exists dest N/A read N/A N/A self filename N/A N/A N/A Read content of a file. N/A dest N/A N/A N/A os path join N/A self root filename N/A N/A open dest f N/A N/A N/A N/A f read N/A write N/A N/A self filename body headers N/A None N/A N/A Write content to a file. N/A dest N/A N/A N/A os path join N/A self root filename N/A dirname N/A N/A N/A os path dirname dest N/A N/A N/A N/A N/A os path exists dirname N/A N/A N/A N/A os makedirs dirname N/A N/A open dest wb f N/A N/A N/A N/A f write N/A to_bytes body N/A delete N/A N/A self filename N/A N/A N/A Delete the specified file.

        :param filename: name of the file.
         N/A dest N/A N/A N/A os path join N/A self root filename N/A N/A N/A os remove dest N/A save N/A N/A self storage filename check N/A True N/A N/A Save a storage (`werkzeug.FileStorage`) with the specified
        filename.

        :param storage: The storage to be saved.
        :param filename: The destination of the storage.
         N/A check N/A N/A N/A N/A self check storage N/A dest N/A N/A N/A os path join N/A self root filename N/A folder N/A N/A N/A os path dirname dest N/A N/A N/A N/A N/A os path exists folder N/A N/A N/A N/A os makedirs folder N/A N/A N/A N/A os path exists dest N/A N/A N/A UploadFileExists N/A N/A N/A storage save dest N/A N/A N/A self url filename N/A N/A