Skip to content

Error: Was not able to copy file **  #1599

Open
@antcoder

Description

@antcoder

Bug Report

Environment

windows 10
Zola version:0.14.0

Expected Behavior

filename.md add many images_resize short_code:

{% set image = resize_image(path=path, width=width, op=op,format="jpg") %}
<img src="{{ image.url }}" />

filename.md

{{ resize_image(path="/entertainment/filename/1.png", width=728, op="fit_width") }}
{{ resize_image(path="/entertainment/filename/2.png", width=728, op="fit_width") }}
...
{{ resize_image(path="/entertainment/filename/12.png", width=728, op="fit_width") }}
png , image size > 1M

Current Behavior

Failed to build the site
Error: Was not able to copy file D:/web/www/temp/site_framework/content/entertainment\filename\2.png to D:\web\www\temp\site_framework\public\entertainment\filename\2.png

Reason:Another program is using this file and the process cannot access it(os error 32)

Step to reproduce

Build site succeed by chance, I guess image is not normal close or async.
But zola serve is ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Need Windows helpWe need someone using Windows to help us with this issuebug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions