summary refs log tree commit diff
path: root/src/libstd/io/fs.rs
AgeCommit message (Collapse)AuthorLines
2014-01-04Don't allow newtype structs to be dereferenced. #6246Brian Anderson-6/+19
2013-12-24std: Get stdtest all passing againAlex Crichton-56/+31
This commit brings the library up-to-date in order to get all tests passing again
2013-12-24std: Expose that LocalIo may not always be availableAlex Crichton-37/+29
It is not the case that all programs will always be able to acquire an instance of the LocalIo borrow, so this commit exposes this limitation by returning Option<LocalIo> from LocalIo::borrow(). At the same time, a helper method LocalIo::maybe_raise() has been added in order to encapsulate the functionality of raising on io_error if there is on local I/O available.
2013-12-15std: fix spelling in docs.Huon Wilson-7/+7
2013-12-10librustuv: Change `with_local_io` to use RAII.Patrick Walton-21/+19
2013-12-04Revert "libstd: Change `Path::new` to `Path::init`."Kevin Ballard-24/+24
This reverts commit c54427ddfbbab41a39d14f2b1dc4f080cbc2d41b. Leave the #[ignores] in that were added to rustpkg tests. Conflicts: src/librustc/driver/driver.rs src/librustc/metadata/creader.rs
2013-12-04std::str: s/from_utf8_slice/from_utf8/, to make the basic case shorter.Huon Wilson-7/+7
2013-12-04std::str: remove from_utf8.Huon Wilson-21/+18
This function had type &[u8] -> ~str, i.e. it allocates a string internally, even though the non-allocating version that take &[u8] -> &str and ~[u8] -> ~str are all that is necessary in most circumstances.
2013-12-03Move std::util::ignore to std::prelude::dropSteven Fackler-2/+2
It's a more fitting name for the most common use case of this function.
2013-11-29libstd: Change `Path::new` to `Path::init`.Patrick Walton-24/+24
2013-11-28Register new snapshotsAlex Crichton-18/+18
2013-11-26libstd: Remove all non-`proc` uses of `do` from libstdPatrick Walton-43/+25
2013-11-19libstd: Change all uses of `&fn(A)->B` over to `|A|->B` in libstdPatrick Walton-2/+2
2013-11-19Implement more native file I/OAlex Crichton-157/+160
This implements a fair amount of the unimpl() functionality in io::native relating to filesystem operations. I've also modified all io::fs tests to run in both a native and uv environment (so everything is actually tested). There are a two bits of remaining functionality which I was unable to get working: * change_file_times on windows * lstat on windows I think that change_file_times may just need a better interface, but lstat has a large implementation in libuv which I didn't want to tackle trying to copy.
2013-11-11Move std::rt::io to std::ioAlex Crichton-0/+1289