about summary refs log tree commit diff
path: root/src/lib/fs.rs
AgeCommit message (Collapse)AuthorLines
2011-12-06Establish 'core' library separate from 'std'.Graydon Hoare-391/+0
2011-12-01fix name of SetCurrentDirectoryNiko Matsakis-1/+1
2011-12-01libstd: add fs::change_dir()Elly Jones-0/+15
2011-11-22stdlib: Use c_ints instead of ints for nativesBrian Anderson-5/+5
2011-11-22stdlib: win32 fixes for dir handlingBrian Anderson-3/+4
2011-11-22Add fs::rmdir() and tempfile/gen_str() tests.Elly Jones-1/+21
2011-11-22once more with feeling...Elly Jones-2/+1
2011-11-22Use type inference!Elly Jones-1/+1
2011-11-22Fix long linesElly Jones-1/+3
2011-11-22std: add fs::mkdir(), rng.gen_str(), tempfile::mkdtemp()Elly Jones-0/+23
Signed-off-by: Elly Jones <elly@leptoquark.net>
2011-11-17remove compile-command from local variable blocksNiko Matsakis-1/+0
2011-11-16Use attributes for native module ABI and link nameHaitao Li-1/+2
This patch changes how to specify ABI and link name of a native module. Before: native "cdecl" mod llvm = "rustllvm" {...} After: #[abi = "cdecl"] #[link_name = "rustllvm"] native mod llvm {...} The old optional syntax for ABI and link name is no longer supported. Fixes issue #547
2011-11-09Rename "c-stack-cdecl" ABI to "cdecl"Brian Anderson-1/+1
2011-10-28stdlib: Add fs::splitextBrian Anderson-0/+49
Splits a path into the filename + extension
2011-10-25Begin documenting std and add doc generation using naturaldocsBrian Anderson-0/+98
Naturaldocs isn't really that great but it seems easier to get something working than with doxygen, for which we would need to convert rust code to something C++ish. We probably want to just write a rustdoc utility at some point.
2011-10-24move fs routines to c-stack-stdlibNiko Matsakis-1/+1
2011-10-05Fix some path handling in std::fs on win32Brian Anderson-0/+11
2011-10-04Add std::fs::normalizeBrian Anderson-0/+78
2011-10-04Add std::fs::splitBrian Anderson-0/+9
2011-10-04Revert "stdlib: Migrate rust_file_is_dir() over to the C stack, and add a ↵Patrick Walton-6/+3
void type" due to build bustage on Windows This reverts commit 9698ef89a0c5513b9670f6ec56ea06de5728eb5a.
2011-10-04stdlib: Migrate rust_file_is_dir() over to the C stack, and add a void typePatrick Walton-3/+6
2011-09-29Reorganize structure of build directoryBrian Anderson-0/+10
Each stage is organized more according to Unix standards and to accommodate multiple target architectures. stageN/ bin - rustc lives here lib - libraries that rustc needs lib/rustc/$(target_triple/ - target libraries
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-7/+7
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-02Reformat. Issue #855Brian Anderson-19/+11
2011-09-01Rename std::istr to std::str. Issue #855Brian Anderson-14/+14
2011-09-01Remove std::str. Issue #855Brian Anderson-1/+0
2011-09-01Convert rust_list_files to istrs. Issue #855Brian Anderson-2/+1
2011-09-01Convert rust_file_is_dir from estrs to cstrs. Issue #855Brian Anderson-2/+4
2011-09-01Convert fs::path_is_absolute internals to istrs. Issue #855Brian Anderson-1/+1
2011-08-27Convert std::os to istrs. Issue #855Brian Anderson-1/+1
2011-08-27Convert std::fs to istrs. Issue #855Brian Anderson-24/+34
2011-08-20ReformatBrian Anderson-4/+4
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-15The wonky for...in... whitespace was bothering me. Sorry!Lindsey Kuper-1/+1
2011-08-09Port the stdlib to the ivec type [T] syntax.Erick Tryzelaar-2/+2
2011-07-27Reformat for new syntaxMarijn Haverbeke-36/+26
2011-07-12stdlib: Move fs over to interior vectors by introducing a ↵Patrick Walton-3/+3
rust_list_files_ivec builtin
2011-07-07Make moving of temporaries do the right thing, use it to optimizeMarijn Haverbeke-1/+0
This adds support for dropping cleanups for temporary values when they are moved somewhere else. It then adds wraps most copy operations (return, put in data structure, box, etc) in a way that will fall back to a move when it is safe. This saves a lot of taking/dropping, shaving over a megabyte off the stage2/rustc binary size. In some cases, most notably function returns, we could detect that the returned value is a local variable, and can thus be safely moved even though it is not a temporary. This will require putting some more information in lvals. I did not yet handle function arguments, since the logic for passing them looked too convoluted to touch. I'll probably try that in the near future, since it's bound to be a big win.
2011-06-28Fix logic bug in std::fs::dirname.Graydon Hoare-1/+1
2011-06-17Made sure getcwd and friends work well on Windows.unknown-4/+5
2011-06-17stdlib: added getcwd and a convenience function to make relative paths ↵Eric Holk-0/+18
absolute. This will be helpful for #441.
2011-06-16Reformat a bunch of recent churn.Graydon Hoare-1/+2
2011-06-15Reformat source tree (minus a couple tests that are still grumpy).Graydon Hoare-34/+27
2011-06-07More work on proper linkage name-mangling. Almost right, aside from version ↵Graydon Hoare-0/+14
numbers.
2011-05-22stdlib: Use if/alt expressions in std::fsBrian Anderson-4/+5
2011-05-22stdlib: Add regression test for fs::connect and a FIXMEBrian Anderson-0/+1
2011-05-17Finally rename std::_xxx to std::xxxMarijn Haverbeke-8/+8
Except for _task, which is still a keyword.
2011-05-16Rewrite everything to use [] instead of vec() in value position.Graydon Hoare-1/+1
2011-05-12Downcase std modules again, move to :: for module dereferencingMarijn Haverbeke-0/+56
This should be a snapshot transition.
2011-05-06Rename std modules to be camelcasedMarijn Haverbeke-56/+0
(Have fun mergining your stuff with this.)
2011-05-05Attempt to fix fs.dirname harder.Graydon Hoare-7/+2