New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add File.utime #28

Closed
ktheory opened this Issue Jan 12, 2010 · 1 comment

Comments

Projects
None yet
2 participants
@ktheory
Contributor

ktheory commented Jan 12, 2010

Please add support for File.utime, which updates the atime and mtime of a file.

I have a patch (with tests) on my topic branch:

http://github.com/ktheory/fakefs/tree/file_utime

The rdoc for the real File.utime is:

File.utime(atime, mtime, file_name,...) => integer
Sets the access and modification times of each named file to the first two arguments. Returns the number of file names in the argument list.

See http://ruby-doc.org/core/classes/File.html#M002527

Note that my FakeFS implementation ignores the atime value, since FakeFS doesn't implement atime.

@smtlaissezfaire

This comment has been minimized.

Show comment
Hide comment
@smtlaissezfaire

smtlaissezfaire Dec 27, 2010

Collaborator

Add File.utime for updating files' mtime. Closed by d422c6a

Conflicts:

lib/fakefs/file.rb
test/fakefs_test.rb
Collaborator

smtlaissezfaire commented Dec 27, 2010

Add File.utime for updating files' mtime. Closed by d422c6a

Conflicts:

lib/fakefs/file.rb
test/fakefs_test.rb

davidmiani pushed a commit to davidmiani/fakefs that referenced this issue May 5, 2011

Add File.utime for updating files' mtime. Closes #28
Conflicts:

	lib/fakefs/file.rb
	test/fakefs_test.rb

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment