summary refs log tree commit diff stats
path: root/lib/pure/os.nim
Commit message (Collapse)AuthorAgeFilesLines
* breaking change: arrays of char do not convert to cstring; ptr to array of ↵Andreas Rumpf2017-10-101-1/+4
| | | | char does
* Merge branch 'stringify-array' of https://github.com/krux02/Nim into ↵Andreas Rumpf2017-10-091-1/+1
|\ | | | | | | krux02-stringify-array
| * removed newString proc again, reverted some unnecesary changesArne Döring2017-07-241-1/+1
| |
| * arrays can now be printedArne Döring2017-07-241-1/+1
| |
* | os.nim: revert findExe 'improvement' that breaks our buildsAndreas Rumpf2017-09-011-6/+1
| |
* | os.findExe: do not return binaries in the cwdAraq2017-09-011-1/+6
| |
* | refactor os.nim and ospaths.nimAndreas Rumpf2017-09-011-266/+54
| |
* | os.nim: do not include and import ospathsAndreas Rumpf2017-09-011-9/+1
| |
* | allow non-admins to create symlinks on windows (#6287)Charlie Barto2017-08-291-1/+3
|/
* Genode readdir fix (#6080)Emery Hemingway2017-07-141-1/+1
| | | The Genode readdir is inherited from then FreeBSD libc.
* make os.nim compile on Windows againAndreas Rumpf2017-07-091-1/+1
|
* minor improvements to os.paramStrAndreas Rumpf2017-07-081-2/+3
|
* Added moveDir (#6015)Yuriy Glukhov2017-06-271-12/+29
|
* Posix from detect (#5697)Jacek Sieka2017-04-121-1/+1
| | | | | | | | | | * refactor posix.nim * types move to separate files for platform-specifc and generic ("other') * consts move to separate files that get autogenerated by detect.nim * proc's stay where they are for now, though in a second stage might move as well * fix missing when
* support for the Genode OS framework (#5560)Emery Hemingway2017-03-311-6/+10
|
* Fix posix version of moveFile between different filesystems (#5580)Anatoly Galiulin2017-03-231-21/+45
|
* Improve os.getFileSize documentation to specify the unit.Dominik Picheta2017-03-231-1/+2
|
* Fixes to support Dragonfly BSD. (#5552)Eugene Kabanov2017-03-171-3/+7
| | | | | | | | | * Fix kqueue.nim and ansi_c.nim to support dragonfly. * Fix ioselectors.nim, threads.nim to support dragonfly. * Fix deprecated dealloc call in tioselectors.nim. * Fix tfsmonitor.nim test to run only on Linux. * Fix osproc.nim return wrong exit codes. * Fix getAppFilename() for dragonfly. * Fix proper exit code handling.
* minor documentation improvementsAraq2017-02-171-1/+1
|
* Make walkDirRec docstring more clear (#5377)Federico Ceratto2017-02-121-2/+2
|
* Import ospaths instead of include (#5233)Yuriy Glukhov2017-01-181-3/+4
| | | | | * Import ospaths instead of include * searchExtPos made public
* Disables ``paramCount``, ``paramStr`` when building posix dynlib. Fixes #4775Anatoly Galiulin2016-12-221-1/+1
|
* os.nim: posix copyFile showed a weird problem about buffer flushing; worked ↵Andreas Rumpf2016-11-051-0/+1
| | | | around via flushFile() call
* Merge pull request #4924 from nigredo-tori/fix-4917Andreas Rumpf2016-10-241-9/+47
|\ | | | | Make createDir return discardable bool
| * Improve as previously discussedDmitry Polienko2016-10-221-11/+21
| | | | | | | | Better name for exposed primitive function, checks for pre-existing files
| * Make `createDir` more robustDmitry Polienko2016-10-221-1/+3
| | | | | | | | | | Should now properly work for root directories on Windows (after isAbsolute is fixed)
| * Revert createDir signature, expose rawCreateDirDmitry Polienko2016-10-221-12/+15
| |
| * Fix for unix and solarisDmitry Polienko2016-10-221-6/+5
| |
| * Make createDir return discardable boolDmitry Polienko2016-10-221-11/+35
| |
* | Fix for getCurrentDir().cheatfate2016-10-231-36/+125
|/ | | | | Fix for expandFilename(). Fix for getAppFilename().
* os: always use pcLinkToDir as kind for links to directoriesSimon Ruderich2016-09-171-10/+29
| | | | | Only the OS-specific case in walkDir() handled that correctly. Adapt the general case and handle it in getFileInfo().
* os: createHardlink: clarify documentationSimon Ruderich2016-09-151-2/+2
| | | | I know no (UNIX-like) system which restricts creation of hardlinks.
* os: createSymlink: fix typo in documentationSimon Ruderich2016-09-151-1/+1
|
* fixes #4764, fixes #4731, fixes #4724Araq2016-09-141-2/+2
|
* minor stdlib cleanupsAraq2016-09-091-4/+4
|
* tiny style changesAndreas Rumpf2016-08-091-2/+2
|
* expr and stmt are now deprecatedAndreas Rumpf2016-07-301-2/+2
|
* stdlib and compiler don't use .immediate anymoreAndreas Rumpf2016-07-291-9/+9
|
* Small changes to the docs to make it easier to find stuff.Hans Raaf2016-07-211-1/+1
|
* prepare Nim codebase for upcoming parser changesAndreas Rumpf2016-07-151-1/+1
|
* Remove line breaks in OSError messages (Windows)Vladislav Vorobiev2016-07-011-2/+2
| | | | | | | | | | | Before: ``` Error: unhandled exception: Не удается найти указанный файл. [OSError] ``` After: ``` Error: unhandled exception: Не удается найти указанный файл. [OSError] ```
* 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
|