Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:37 28 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Bug  in all PicoMite`s  sub-directory  time stamps !

Author Message
amigawizard

Regular Member

Joined: 15/08/2023
Location: Australia
Posts: 43
Posted: 12:33pm 19 Aug 2023
Copy link to clipboard 
Print this post

I  'Think !'  this is in  all PicoMite`s


OPTION LIST
WebMite MMBasic Version 5.07.08b11
OPTION COLOURCODE ON
OPTION CPUSPEED (KHz) 252000
OPTION WIFI ****, ********, PicoW
OPTION TCP SERVER PORT 80
OPTION TELNET CONSOLE ON
>
>
> files
A:/testdir
  <DIR>  .
  <DIR>  ..
00:00 00-00-1980       1024  Rxx-1-test.bas
2 directories, 1 file, 512000 bytes free
> ? time$
22:19:57
> ? date$
19-08-2023
> save "a:testdir/web.bas"
> files
A:/testdir
  <DIR>  .
  <DIR>  ..
00:00 00-00-1980       1024  Rxx-1-test.bas
00:00 00-00-1980       5197  web.bas
2 directories, 2 files, 503808 bytes free
>
* ----------------------------------------- *
***  files at the  root  ***
* ----------------------------------------- *

> files "a:"
A:/testdir
  <DIR>  .
  <DIR>  ..
00:00 00-00-1980       1024  Rxx-1-test.bas
00:00 00-00-1980       5197  web.bas
2 directories, 2 files, 503808 bytes free
> files "a:/"
A:/
  <DIR>  .
  <DIR>  ..
  <DIR>  testdir
00:00 01-01-2000          4  bootcount
21:28 18-08-2023       3584  thermo3.html
21:28 18-08-2023       5248  theruning.bas
3 directories, 3 files, 503808 bytes free
>

  Wayne  !
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9127
Posted: 01:29pm 19 Aug 2023
Copy link to clipboard 
Print this post

You will find that it works if the file doesn't previously exist. LittleFS does not update the created timestamp when you overwrite an existing file
 
amigawizard

Regular Member

Joined: 15/08/2023
Location: Australia
Posts: 43
Posted: 02:00pm 19 Aug 2023
Copy link to clipboard 
Print this post

the  file  saved  in
   "a:testdir/web.bas"

 > save "a:testdir/web.bas"

  is is new !

     Rxx-1-test.bas
    is copyed with   'MMCC' from the PC

  Wayne  !!
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 02:01pm 19 Aug 2023
Copy link to clipboard 
Print this post

i.e. the time stamp is a file creation time, not a file update time. :)
Not all file systems support last-open or last-updated times. It's not a bug, just a limitation of the filesystem.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
amigawizard

Regular Member

Joined: 15/08/2023
Location: Australia
Posts: 43
Posted: 02:06pm 19 Aug 2023
Copy link to clipboard 
Print this post

Ok  but  "web.bas" is  today`s

   Wayne  !!!
 
amigawizard

Regular Member

Joined: 15/08/2023
Location: Australia
Posts: 43
Posted: 02:16pm 19 Aug 2023
Copy link to clipboard 
Print this post

It is  date`s & time`s  in the SubDirectorys  only !

   
00:00 00-00-1980       1024  Rxx-1-test.bas
00:00 00-00-1980       5197  web.bas

00:00 01-01-2000          4  bootcount
21:28 18-08-2023       3584  thermo3.html
21:28 18-08-2023       5248  theruning.bas

   Wayne  !!!!
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 02:30pm 19 Aug 2023
Copy link to clipboard 
Print this post

I can't test with that version of MMBasic as I don't have a WebMite.

Your point is that new files, when saved directly into a sub-directory accessed by a path, aren't getting timestamped?
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
amigawizard

Regular Member

Joined: 15/08/2023
Location: Australia
Posts: 43
Posted: 03:51pm 19 Aug 2023
Copy link to clipboard 
Print this post

PicoMite  to  with a SubDirectory


        Wayne  !!!!!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9127
Posted: 04:18pm 19 Aug 2023
Copy link to clipboard 
Print this post

OK found it. What confuses is that if the same filename exists in the route directory the timestamp from that file is shown

The basic problem is that LittleFS doesn't support timestamps at all. It has to be done through a user "attribute" and user attributes don't understand an open file. The I/F to attributes requires a fully qualified pathfilename. i.e. littlefs doesn't understand "current directory" . That is purely a construct that I have created in the CHDIR code to mimic FatFS

Will be fixed in next beta
Edited 2023-08-20 02:21 by matherp
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024