Skip to content

Commit

Permalink
Cleaned up directories for littlefs filesystems
Browse files Browse the repository at this point in the history
- bumped version to 0.0.32
  • Loading branch information
dhylands committed Jan 20, 2024
1 parent bfacb5b commit 624d5b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions rshell/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,11 @@ def lstat(filename):
rstat = os.lstat(filename)
except:
rstat = os.stat(filename)
if rstat[0] & 0x4000 != 0 and rstat[8] == 0:
# littlefs does some funky stuff with the size field and directories.
# For now, we just set the size to 0.
# unreasonable.
rstat = rstat[:6] + tuple([0]) + rstat[7:]
return rstat[:7] + tuple(tim + TIME_OFFSET for tim in rstat[7:])


Expand Down
2 changes: 1 addition & 1 deletion rshell/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.31'
__version__ = '0.0.32'

0 comments on commit 624d5b1

Please sign in to comment.