Questions tagged [lastaccesstime]
33 questions
16
votes
2 answers
Get the Last Access Time for a File
I know that using File object we can get the last modified time for a File (i.e. File.lastModified()). But, my requirement is to get the last accessed time for a File in Java. How do I get it?

Veera
- 32,532
- 36
- 98
- 137
6
votes
1 answer
Last Access Time of the Azure storage files
Is there way to determine Last Access Time of the Azure storage files apart from log analytics . So, does anyone ever come across this situation, what would be the best way to achieve this? Or am I too concerned about this?
Thank you in advanced.

Karthikeyan Rasipalay Durairaj
- 1,920
- 13
- 35
5
votes
1 answer
.Net File.GetLastAccessTime updates Last Access Time of file
We are using below line to get Last access date and time of the file.
DateTime dtLastAccesstime = File.GetLastAccessTime(sFilePath);
But we are facing strange problem, the above call itself modifies the Last access time. So effectively we are…

SantoshTupe
- 61
- 1
- 4
5
votes
3 answers
Avoid updating last-accessed date/time when reading a file
We're building a Windows-based application that traverses a directory structure recursively, looking for files that meet certain criteria and then doing some processing on them. In order to decide whether or not to process a particular file, we have…

Anodyne
- 1,760
- 2
- 15
- 28
5
votes
1 answer
File last access time on Android
Is there a way to get lastAccess time for a file in Android. I know how to do it using java nio.file package, however, Android's support for java 7 is very limited and does not include the file package. I am not interested in lastModified, only…

Beata
- 73
- 4
3
votes
3 answers
LastAccess Time is incorrect
every time i create a FileInfo object and access it's lastaccesstime property, it's always a few minutes off. the file property window remains constant, however the application shows that it is usually a few minutes after the property window…

Michael G
- 6,695
- 2
- 41
- 59
3
votes
8 answers
Directory.GetFiles keeping the last access time
It appears that Directory.GetFiles() in C# modifies the Last access date of a file.
I've googled for hours and can't seem to find a work around for this issue. Is there anyway to keep all the MAC (Modified, Accessed, Created) attributes of a file?…

Michael G
- 6,695
- 2
- 41
- 59
3
votes
1 answer
Prevent session's last access time update in Jetty
Is it possible to instruct a Jetty server not to update the session's last access time when a particular servlet is accessed?
Our use case is an HTML page that sends asynchronous requests in the background every 5 miniutes to refresh its contents.…

GOTO 0
- 42,323
- 22
- 125
- 158
3
votes
5 answers
Remove Azure blob storage contents that are untouch for period of time
The application I developed basically allows users to upload contents and get stored in Azure Blob Storage.
Since the nature of the contents are for quick sharing between users, many of the contents are quickly become untouched after a period of…

heisthedon
- 3,657
- 3
- 21
- 24
2
votes
1 answer
Read content of file in Java without updating last access time
I am looking for a way to read the content of a file in Java without updating the last access time of the file. In C on Linux this is achieved by passing the O_NOATIME flag to open, and I'm sure other languages and platforms have similar…

pauldoo
- 18,087
- 20
- 94
- 116
2
votes
1 answer
How to get the last access date of any resource in a bucket in amazon s3 in node.js?
I am trying to get the last access date of a resource in a bucket. But not able find anything related to it. I tried to fetch all the access logs for a bucket and parsed the logs files to check if a resource is accessed.
This is a very complex…

Dinesh Rawat
- 970
- 10
- 32
2
votes
0 answers
file.setLastModified does not work in Android
I am trying to achieve lastAccessedTime of a File in Android, for which I tried the following 2 methods:
Using lstat as described of its use here.
But Android does not use lastAccessedTime, during which either lastModified/fileCreation time is…

jay
- 1,982
- 2
- 24
- 54
2
votes
0 answers
Finding TLB size with a program?
I am currently working on an assignment, where my initial task is to programmatically find the TLB size. Straight away my intuition was to map a large file using mmap, and read every 4096th byte if it. After 100 such reads, I should have accessed…

Johnny
- 23
- 2
2
votes
0 answers
how to update last access time of a remote (SMB) file
I want to update the last access time of a file sitting on a remote machine (samba) which I am accessing through java (jcifs).
How can I do it?
I am able to create a SmbFile object but not java.io.File object for a remote file.
Any help/pointers…

praddy
- 169
- 1
- 11
2
votes
1 answer
how to maintain lastaccesstime using manifold cf
I am using manifold cf based windows fileshare connector to crawl files.
But Manifold CF also updates the lastAccessTime of all files that it reads.
I want to read all files without updating their lastAccessTime.
Which files in Manifold CF I need to…

praddy
- 169
- 1
- 11