Questions tagged [lastaccesstime]
33 questions
2
votes
4 answers
How to get file access times in Haskell (cross-platform)?
I'd like to read file access times in a portable way. I found accessTime in System.Posix.Files, but it's POSIX only. Is there a portable, cross-platform way that would work both on Windows and POSIX systems?

Petr
- 62,528
- 13
- 153
- 317
2
votes
1 answer
Is it necessary to enable "atime" in /etc/fstab to get the correct last accessed time in java?
I can get the last accessed time by using the below code.
public Date getLastAccessTime(String filePath) throws IOException {
File f = new File(filePath);
BasicFileAttributes basicFileAttributes = Files.getFileAttributeView(
…

Querier
- 185
- 1
- 1
- 10
1
vote
2 answers
FIleSystemWatcher last access (read) for media files is not working
I am delivering media contents to a client system (download from internet) and want to acknowledge if the media file was opened (and viewed) by the operator.
I am using a file system watcher (C# 3.5) to check for the last access time of file (so…

AkshayM
- 317
- 6
- 18
1
vote
1 answer
c# Get File Last Access or Usuability
I need to inspect all files within a Repository periodically and compare its LastAccessTime in order to know when was the last time that file was used (accessed, modified and/or updated).
I've already been tried with File.GetLastAccessTime() and…

Leonardo
- 39
- 1
- 7
1
vote
1 answer
last accessed time gets updated though I do not open it
Usually it's the other way around, but I've been checking file properties and it shows the current date and time - even files I never actually opened. A couple of days ago I got a proper reading, but today others are properly displayed, others not,…

user3079666
- 1,159
- 10
- 23
1
vote
2 answers
Haskell: File Access Time Formatted "yyyy-MM-dd"
I'm getting quite lost in all the different date and time libraries available to me in Haskell. What I'm trying to do is format the file modification time as "yyyy-MM-dd". Can someone show me how to do that?
I've got this code-snippet:
main = do
…

Jeff Maner
- 1,179
- 9
- 23
1
vote
1 answer
PHP fileatime not updating
I personally know limited PHP, however I have a script provided by another, that I have tweaked a bit

NRGdallas
- 395
- 1
- 8
- 20
0
votes
4 answers
PHP script to delete thousands of .jpg images?
My weak shared web host doesn't support cron or perl and I often need to delete thousands of .jpg images from certain folders. The images are uploaded from webcams. I'm wondering if there is a simple app out there that can find all .jpg images…

Wes
- 79
- 2
- 10
0
votes
0 answers
FOLDER timestamps microsoft windows ntfs filesystem
are the timestamps "MODIFIED" and "LASTACCESS" for FOLDERS reliable?
I tested a few things, read a little bit, outcome:
FILE timestamps sometimes updated immediatly, sometimes not => not reliable.
FOLDER timestamp[s] are updated immediatly => seems…

McFly
- 13
- 3
0
votes
1 answer
Python listing files/directories without updating last access time?
I wrote a simple code to check specific directory's last access time.
Below code always prints the first execution time of this script.
Another call of this script does not updating it. It always shows the same time Wed Dec 16 14:31:38 2020.
How can…

Dorr
- 577
- 1
- 8
- 22
0
votes
3 answers
Filter and delete files and folders(and files inside of folders) older than x days in powershell
this is my first post on this forum. Im a beginner in coding and I need help with one of my very first self coded tools.
I made a small script, which deletes files based on if they are older than date x (lastwritetime). Now to my problem: I want the…

xjustinx000
- 3
- 4
0
votes
1 answer
Why does the last access time change for a file when it gets stored in a list or object?
I'm trying to look at a directory and determine the last time a file was accessed so that I can move files that have an accesstime older than say like a month, but I am having issues with checking the access time of the files. The issue that I seem…

Trevor Crow
- 13
- 1
0
votes
1 answer
Get accessTime of a file
I need a method of getting the last time a (local) file has been accessed in android.
I don't mean file.lastModified(), but the last time it had been opened (viewed in any app of the device).
I have bunch of files that are only viewed, not modified,…

ronginat
- 1,910
- 1
- 12
- 23
0
votes
0 answers
Wrong date for StorageFile System.DateAccessed
I have a basic c# UWP app running on Windows 10.
I'm trying to get the last access time for a StorageFile like this:
var basicProperties = await file.GetBasicPropertiesAsync();
var moreProperties = await basicProperties.RetrievePropertiesAsync(
…

Mark
- 6,647
- 1
- 45
- 88
0
votes
1 answer
How to get LastActivityDate when using Active Directory Setup in a .net application
I have a requirement to show a list of all users along with the Last Activity Date. The application is .Net based.
I found the MemberShip class provides the Last Activity date. However, this does not work when the MemberShip provider is…

user320587
- 1,347
- 7
- 29
- 57