#!/usr/bin/python
+##
+## YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
+##
+## Copyright (C) 2002-2010 Aleph One Ltd.
+## for Toby Churchill Ltd and Brightstar Engineering
+##
+## Created by Timothy Manning <timothy@yaffs.net>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License version 2 as
+## published by the Free Software Foundation.
+##
+
import Tkinter as tk
from yaffsfs import *
#import examples
import ctypes
-yaffs_StartUp()
+yaffs_start_up()
yaffs_mount("/yaffs2/")
root_window =tk.Tk()
root_window.title("YAFFS Browser")
def load_dir():
global current_directory_dict
print "loading a new directory*******************************************************************"
+ ##deleate current items in text box
name_list_box.delete(0, tk.END)
current_directory_dict=yaffs_ls(mount_list_text_variable.get())
print "new directory", current_directory_dict