Forum.ArchosFans.com

Unofficial Archos Support Forum
It is currently Thu Apr 27, 2017 2:01 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Dec 23, 2009 10:10 pm 
Offline
Archos Novice
Archos Novice

Joined: Wed Dec 23, 2009 10:08 pm
Posts: 2
Erm

Why are entries under "Files" not showing up in alphabetical order? Is there something that I missed?


Top
   
PostPosted: Wed Dec 23, 2009 11:33 pm 
Offline
Archos Novice
Archos Novice

Joined: Wed Dec 23, 2009 10:08 pm
Posts: 2
I found out it's in order of entry in the FAT table.

Workaround: Use a program like FAT Sorter to make them appear in order
Fix: Archos, sort it out!


Top
   
PostPosted: Sat Jan 01, 2011 4:04 pm 
Offline
Archos Novice
Archos Novice

Joined: Mon May 04, 2009 9:22 pm
Posts: 7
For those who are annoyed by this and use Linux, here's a script I've written for the files to be alphabetically sorted. Just replace the folder name in the second line by yours.
Code:
#!/bin/bash
DIR="/media/Archos3"
if [ "$1" == "1" ]
then
    if [ -d "$2" ]
    then
            mkdir -p "$DIR/temp/$2"
    else
            mv "$2" "$DIR/temp/$2"
    fi
elif [ "$1" == "2" ]
then
   if [ -d "$2" ]
   then
      mkdir -p "$DIR/Music/$2"
   else
      mv "$2" "$DIR/Music/$2"
   fi
else
   mkdir "$DIR/temp"
   cd "$DIR/Music"
   find . | sort | tr '\n' '\0' | xargs -0 -t -i "$0" 1 {}
   rm "$DIR/Music/*" -rf
   cd "$DIR/temp"
   find . | sort | tr '\n' '\0' | xargs -0 -t -i "$0" 2 {}
   rm "$DIR/temp" -rf
fi

Disclaimer : though this works perfectly for me, you may hypothetically lose data if something gets wrong. Ensure you've backed up your music on your computer...


Top
   
PostPosted: Thu Aug 18, 2011 11:40 pm 
Offline
Archos Novice
Archos Novice

Joined: Thu Aug 18, 2011 11:31 pm
Posts: 3
I am also wondering about this very frustrating bug. I did write a ruby script to modify my the dates for my music files, but this only seems to help for the internal memory, not the SD card. Any clues about that?

For reference my ruby code that works in linux (dirty, but works):

#!/usr/bin/env ruby
# make sure ruby is installed
# save this to a text file and make it executable (chmod +x <name of the file>)
# then run it like ./<name of the file> <number_of_dir_nesting> <start_dir>
# for example: ./timeIncrease.rb 3 /media/9254-219E/
# should be save since it's only calling the touch command

def exitWithWarning
puts "You have to pass 2 arguments on the command line"
puts "First argument: How many subdirs to expect"
puts "Second argument: The directory to start"
exit()
end

if ARGV.length == 2
$counter = 1
$subdirs = ARGV[0].to_i
$directory = ARGV[1]
$date = '20110101'
else
puts "ARGV.length = #{ARGV.length}"
puts ARGV
exitWithWarning()
end

def increaseDate()
day = $date[-2..-1].to_i
day += 1
$date = $date[0..-3] + "%02d" % day
$counter = 1
end

def timestamp
hours = $counter / 60
minutes = $counter % 60
stamp = "#{$date}#{"%02d" % hours}#{"%02d" % minutes}"
$counter += 1
increaseDate() if $counter == 1439 # 1439 -> 23:59
return stamp
end

def orderByDate(dir, deepness)
Dir.entries(dir).sort{|x,y| x.downcase <=> y.downcase}.each do |entry|
unless entry[0] == '.'
filename = File.join(dir, entry)
command = "touch -t #{timestamp()} \"#{filename}\""
puts command
`#{command}`
orderByDate(filename, deepness - 1) if deepness > 0
end
end
end

orderByDate($directory, $subdirs)


Top
   
PostPosted: Thu Aug 25, 2011 8:47 pm 
Offline
Archos Novice
Archos Novice

Joined: Thu Aug 18, 2011 11:31 pm
Posts: 3
I've started up a project for this little script in case anyone finds it usefull:
http://code.google.com/p/timeincrease/

If you have problems using the script, feel free to make a bug report there ;)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited