summary refs log tree commit diff stats
path: root/lib/pure/os.nim
Commit message (Collapse)AuthorAgeFilesLines
* Add `walkPattern` to return both files and directoriesJoey Payne2016-06-171-10/+46
| | | | | Also added `walkDirs` to walk only directories based on the pattern specified.
* Fix #4280: os.walkFiles yields directories on Unix systemsJoey Payne2016-06-161-1/+4
| | | | Files were not properly checked to actually be files after globbing.
* remove fauly fix for windows error being overwrittenJacek Sieka2016-06-121-3/+2
|
* fix errno in os.nimJacek Sieka2016-06-081-2/+5
|
* remove system/ansi_c include from osJacek Sieka2016-06-051-1/+15
|
* fix types of ansi_c/sysio to more closely match C ABIJacek Sieka2016-06-051-2/+2
| | | | | also fixes some instances of using C library functions when there are nim alternatives available
* Deprecate timeToTimeInfo, add str->time procscoffeepots2016-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * depreciate timeToTimeInfo, add str->time procs initTime allows creating times from strings. initTimeFromStr offers a default format string compatible with $Time. timeToTimeInterval changed to work properly. * Spell {.deprecated.} correctly * deprecated timeToTimeInfo, removed initTime procs Is it even worth depreciating timeToTimeInfo rather than just removing it, considering it's just wrong and we have getLocalTime and getGMTime that actually work? Also, if I'm renaming timeToTimeInfo -> toTimeInfo etc, isn't the deprecated tag kind of redundant? * Updated names for toTime and toTimeInterval procs * Added type to toTime template This should allow compilation of os.nim now that toTime is defined in times.nim. * Updated toTime template to use {.gensym.} Local templates default to 'bind' semantics, not 'gensym'. This was causing a failure to 'see' the local toTime template.
* Better additionalInfo OSError message, ref #2650.Dominik Picheta2016-04-041-1/+1
|
* Use /proc/self/exe on NetBSDdef2016-03-071-1/+1
|
* Better getAppFilename() heuristic for OpenBSD and NetBSDdef2016-03-071-16/+9
| | | | | | Using the environment variable _ is completely broken and makes it impossible to build even nimble. After calling `sh` (ksh) on OpenBSD, `_` is wrongly set to `/bin/sh` and all subprocess calls to Nim fail.
* Avoid using private _NSGetEnviron API on iOS.Yuriy Glukhov2016-03-051-1/+1
|
* Use defer in iterator to avoid possible leaks. Fixes #3802Pavel Roschin2016-02-021-4/+4
|
* fixes memory leak for getAppFilename on WindowsAraq2015-11-261-1/+1
|
* os.walkDir is available at compile timeAraq2015-11-101-41/+49
|
* os.walkDir supports yielding relative pathsAraq2015-09-291-4/+8
|
* split os into os and ospaths parts; ospaths is available for NimScript; ↵Araq2015-09-041-524/+2
| | | | better NimScript support
* Better docs for os.getCreationTime(). Fixes #1058.Dominik Picheta2015-08-231-2/+4
|
* workaround windows 'findNextFile' bugAraq2015-08-161-1/+8
|
* added os.tailDir procAraq2015-07-121-0/+14
|
* Do not use errno on Windows in the ``os`` module.Dominik Picheta2015-07-111-1/+1
|
* Use raiseOSError with additionalInfo parameter from develSloane Simmons2015-07-041-3/+3
|
* Remove expandTilde forward declarationDominik Picheta2015-07-031-19/+17
|
* True is trueAraq2015-06-301-3/+3
|
* Implements ``os.expandSymlink``. Ref #3015.Dominik Picheta2015-06-291-0/+16
|
* much better error message if an exe cannot be foundAraq2015-06-291-2/+5
|
* fixed #1985Vlad2015-06-141-1/+3
|
* stdlib: don't use deprecated symbolsAraq2015-06-041-37/+37
|
* lib/pure/e-o - Dropped 'T' from typespdw2015-06-041-18/+18
|
* Fix behavior of os.getFileInfo() for symbolic links.Reimer Behrends2015-05-131-2/+2
| | | | | | The calls to lstat() and stat() were switched. As a result, links weren't followed for followLink == true and links were followed for followLink == false.
* Excludes windows platfrom from $PATH tilde expansion. Refs #2358.Grzegorz Adam Hankiewicz2015-03-171-1/+4
|
* Expands tildes for entries in $PATH when looking for a binary.Grzegorz Adam Hankiewicz2015-03-161-2/+4
|
* Enables use of NSGetEnviron for osx binary compatibility. Refs #965.Grzegorz Adam Hankiewicz2015-03-141-2/+2
|
* Check that file passed to getFileInfo is not nildef2015-03-101-0/+2
|
* Use faster walkDir on BSDsdef2015-02-241-1/+1
|
* Fall back to lstat() calls on unsupported filesystemsdef2015-02-241-6/+10
|
* Speed up walkDir significantlydef2015-02-241-3/+7
| | | | | | We only know that this works on Linux and Mac OS X, so other systems use the POSIX conforming version still. This removed the lstat call, which is especially expensive on NFS filesystems for me.
* Fix typosFederico Ceratto2015-02-151-2/+2
|
* Fix typosFederico Ceratto2015-02-151-3/+3
|
* fixes os.moveFile on WindowsAraq2015-02-131-2/+10
|
* fixed minor bugs; cleaned up testsAraq2015-02-121-3/+3
|
* lots of C++ codegen improvementsAraq2015-02-071-2/+6
|
* nimsuggest: first versionAraq2015-01-271-1/+1
|
* Happy new year!Guillaume Gelin2015-01-061-1/+1
|
* fixes #685Araq2014-12-261-1/+1
|
* cleaned up os.nim; docgen improvementsAraq2014-12-211-12/+16
|
* fixes #1735Araq2014-12-151-14/+14
|
* fixes #642Araq2014-11-231-1/+5
|
* Merge branch 'devel' of https://github.com/Araq/Nimrod into bigbreakAraq2014-10-041-2/+2
|\ | | | | | | | | | | | | Conflicts: lib/impure/db_postgres.nim lib/pure/os.nim lib/wrappers/postgres.nim
| * Fix permissions for createDir() on Unix systems.Reimer Behrends2014-09-221-2/+2
| | | | | | | | | | Permissions were set to 0o711 by default; they should be 0o777, with umask being responsible for restricting permissions further.
* | Lots of documentation improvements for asyncdispatch.Dominik Picheta2014-09-121-1/+1
| | | | | | | | Ref #1487.