Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about std-filesystem

Read more about std-filesystem

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - std-filesystem

std::filesystem::remove_all fails on read-only file

I am trying to remove a complete git repository clone from my disk using std::filesystem::remove_all() std::filesystem::remove_all( myRepoName ); This throws an exception terminate called after throw...
test-img

ravenspoint

c++

windows

c++17

git-for-windows

std-filesystem

Votes: 0

Answers: 1

Latest Answer

This code solves the problem by changing the readonly permission of any file that fails to delete. int count = 0; while (count < 5) //give up after 5, there should be just 2 in a git repo { ...
test-img

ravenspoint

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved