Skip to content

Ошибка удаления кагалога с ReadOnly-файлами #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 18, 2021

Conversation

240596448
Copy link
Contributor

@240596448 240596448 commented Dec 18, 2021

НайтиФайлы не падает:

  • на имени отсутствующего файла
  • на имени файла (не каталога)

Поэтому убрал вложенные попытки и кучу условий

Пример вложенных RO-файлов - папка .git в временном репозитории. (файлы индексов, 1bdd)
image

@240596448
Copy link
Contributor Author

240596448 commented Dec 18, 2021

Папка 10000 файлов на 300 Мб:

  • метод УдалитьФайл ~ 3 сек
  • методы НайтиФайлы + УдалитьФайл ~ 6 сек

Вложенная попытка будет полезной. Вернул.

@artbear artbear merged commit 2ea5fcb into oscript-library:master Dec 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants