Quote:
Originally Posted by eba
On the m92 file manager, it seems that you can only sort by:
name, type, size, or access time.
I would like to sort by modification time, so that I can see the newly added papers at the top.
Is there any way to achieve this?
I'm running firmware 1.6, would 1.7 help?
thanks,
-=Abe
|
In case it's helpful to anyone else. I wrote a small bash script to work around this issue. It creates a folder called "recent_papers" on my device, and then copies the 8 most recent papers in my papers folder to it, prefixing the number beforehand so that I can then "sort by name"
Code:
#!/bin/bash
PAPERS_DIR=~/dl_papers
RECENT_DIR=/media/boox/recent_papers
mkdir -p $RECENT_DIR
i=0
ls $PAPERS_DIR/*.pdf -t | head -8 | while read p
do
let i=i+1
bp=$(basename "$p")
OUTFILE="$RECENT_DIR/$i-$bp"
if [ -e "$OUTFILE" ]
then
continue
fi
rm -f $RECENT_DIR/$i-*.pdf
echo "$OUTFILE"
cp "$p" "$OUTFILE"
done