Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
Sylvestre Ledru 73d4a6ca57 no bug - Fix a few typo found by the next version of codespell r=marco
Differential Revision: https://phabricator.services.mozilla.com/D150321
2022-07-20 15:26:22 +00:00
Barret Rennie 39e465e39d Bug 1739702 - Rename IOUtils.touch to IOUtils.setModificationTime r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131957
2021-11-25 02:19:20 +00:00
Butkovits Atila 193530a2df Backed out changeset 2ebd54655436 (bug 1739702) for causing failres at test_ioutils_stat_set_modification_time.html. CLOSED TREE 2021-11-24 06:41:13 +02:00
Barret Rennie f310df5b88 Bug 1739702 - Rename IOUtils.touch to IOUtils.setModificationTime r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131957
2021-11-24 03:52:14 +00:00
Barret Rennie 8081914485 Bug 1741920 - Correct documentation about IOUtils.remove vs OS.File.removeEmptyDir r=Gijs DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D131536
2021-11-23 18:48:01 +00:00
Markus Stange 1aaa379d91 Bug 1741492 - Update IOUtils migration guide for new openFileForSyncReading API. r=barret
Differential Revision: https://phabricator.services.mozilla.com/D131273
2021-11-17 19:49:53 +00:00
Barret Rennie 0a42a75031 Bug 1723082 - Support reading files > INT32_MAX in IOUtils r=Gijs
Previously, if you attempted to read a file greater than INT32_MAX in size, we
would either fail to read the file (on release) or crash (on debug). This is
due to the implementation of _PR_MD_READ accepting an int32_t of bytes to read
instead of a uint32_t, which nsFileStream::Read accepts and passes on.

Differential Revision: https://phabricator.services.mozilla.com/D131161
2021-11-17 03:55:36 +00:00
Alexandru Michis 2d0c990efe Backed out 3 changesets (bug 1741247, bug 1723082, bug 1736175) for causing PathUtils.normalize failures.
CLOSED TREE

Backed out changeset 55165cf4b7bb (bug 1736175)
Backed out changeset 492f5ca3b592 (bug 1723082)
Backed out changeset ce199e98a0c5 (bug 1741247)
2021-11-17 03:12:07 +02:00
Barret Rennie 72b138b1d8 Bug 1723082 - Support reading files > INT32_MAX in IOUtils r=Gijs
Previously, if you attempted to read a file greater than INT32_MAX in size, we
would either fail to read the file (on release) or crash (on debug). This is
due to the implementation of _PR_MD_READ accepting an int32_t of bytes to read
instead of a uint32_t, which nsFileStream::Read accepts and passes on.

Differential Revision: https://phabricator.services.mozilla.com/D131161
2021-11-17 00:28:58 +00:00
Chris H-C 6b06ddd335 Bug 1736855 - Add IOUtils Migration Guide to source docs r=Gijs DONTBUILD
A public gdoc's not bad, but source docs is better.
This place was chosen because the implementation is nearby,
even though it's really support for toolkit and browser stuff.

Also update the docs a tad. `exists` and `setPermissions` are now available!
And we have JSON read/write, too!

Differential Revision: https://phabricator.services.mozilla.com/D129069
2021-10-21 15:44:59 +00:00