*vital-system-file.txt* filesystem utilities library. Maintainer: Shougo tyru ============================================================================== CONTENTS *Vital.System.File-contents* INTRODUCTION |Vital.System.File-introduction| INTERFACE |Vital.System.File-interface| Functions |Vital.System.File-functions| ============================================================================== INTRODUCTION *Vital.System.File-introduction* *Vital.System.File* is Filesystem Utilities Library. It provides some functions for file system. > let s:V = vital#of("vital") let s:F = s:V.import("System.File") < ============================================================================== INTERFACE *Vital.System.File-interface* ------------------------------------------------------------------------------ FUNCTIONS *Vital.System.File-functions* open({filename}) *Vital.System.File.open()* Opens a file specified as {filename}. {filename} is a file or a directory. > call s:F.open("/tmp/file") < move({src}, {dest}) *Vital.System.File.move()* Renames a file {src} to {dest}. Returns non-zero if successful, otherwise 0. > call s:F.move("/tmp/old", "/tmp/new") < copy({src}, {dest}) *Vital.System.File.copy()* Copies a file {src} to {dest}. Returns non-zero if successful, otherwise 0. > call s:F.copy("/tmp/old", "/tmp/new") < mkdir_nothrow({name} [, {path} [, {prot}]]) *Vital.System.File.mkdir_nothrow()* Creates a directory {name} without throwing any exception. The arguments are used like with |mkdir()|. Returns a non-zero Number if successful, otherwise 0. > echo s:F.mkdir_nothrow("/tmp/exists_file") " 0 < rmdir({path} [, {flags}]) *Vital.System.File.rmdir()* Removes a directory {path}. If {flags} contains "r", this removes the directory and its contents recursively. ============================================================================== vim:tw=78:fo=tcq2mM:ts=8:ft=help:norl