The std.file rename method fails in the docker environment.

Paolo Invernizzi paolo.invernizzi at gmail.com
Thu Mar 14 09:09:06 UTC 2024


On Wednesday, 13 March 2024 at 23:59:24 UTC, zoujiaqing wrote:
> On Wednesday, 13 March 2024 at 22:16:13 UTC, Sergey wrote:
>> On Wednesday, 13 March 2024 at 21:49:55 UTC, zoujiaqing wrote:
>>> this is bug in D.
>>
>> It seems like a bug in Hunt-framework.
>> And Hunt - is an abandoned project.
>
> Hunt Framework call std.file rename function.
> but this function can't move file from docker container to host 
> machine.

As Jonathan said, it's NOT possible to move aka rename files 
across different filesystems.
You can NOT do that in D, in C, in Python, every language ... is 
a OS error.

Try to copy the file, and then delete the original one.

/P


More information about the Digitalmars-d-learn mailing list