#Calculates the free space on this labellerdef Calculate_free_space(): total_space = 100000 used_space = 0 #add up all the files in the directory for File in os.listdir(ftp_directory): if os.path.isfile(ftp_directory + "/File") and not File.startswith("."): print(File + "\n") used_space += File_size(File) print(str(used_space))