Documentation for /home/davin/idl/socware/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

general/misc/

file_touch.pro


FILE_TOUCH Purpose: Wrapper routine for the "touch" program that sets file modification and access times USAGE: file_touch,'foo',systime(1)-300,/mtime ; sets mod time to 5 minutes ago keywords: MTIME set only modification time(UTC) ATIME set only access time(UTC) VERBOSE sets VERBOSITY of messages (0: error messages only, 6: lots) Restrictions: #1 Shell executable "touch" must be in path on local operating system. This is common on unix systems. Windows executable available from: http://sourceforge.net/projects/unxutils/ If the touch executable is not found then no action is taken. Test for executable occurs only once. #2 Behavior on Windows is currently untested, and may not be consistent with Linux. #3 This routine will not work with home directories(~/file_name will not work) on linux variants. The /noshell option to spawn means that it won't expand home directories into full paths #4 Routine will not work for modification date 1970-01-01/00:00:00 #5 Time should be a UTC time in seconds since 1970. Example: file_touch,'foo',systime(1),/mtime #6 This routine primarily for file_http_copy routine. It is not considered stable for general purpose use and the interface may change. $LastChangedBy: davin-mac $ $LastChangedDate: 2014-12-02 21:10:34 -0800 (Tue, 02 Dec 2014) $ $LastChangedRevision: 16338 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/general/misc/file_touch.pro $

Routines

top source file_touch

file_touch, file, time, mtime=mtime, atime=atime, no_create=no_create, exit_status=exit_status, verbose=verbose, exists=exists

Parameters

file
time

Keywords

mtime
atime
no_create
exit_status
verbose
exists

File attributes

Modification date: Wed Dec 3 06:12:30 2014
Lines: 63