[{"data":1,"prerenderedAt":8303},["ShallowReactive",2],{"tutorials-python":3,"content-/python/file-management":987,"category-items-python":8301},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816,"expanded":13},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"body":988,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},{"type":989,"children":990,"toc":8287},"root",[991,1000,1006,1011,2003,2010,2015,2304,2311,2316,3219,3225,3230,4328,4334,4339,5587,5593,5598,5820,5826,7242,7248,7253,7933,7939,7944,8230,8235,8240,8246,8251,8258,8264,8269,8281],{"type":992,"tag":993,"props":994,"children":996},"element","h1",{"id":995},"️-file-management",[997],{"type":998,"value":999},"text","🗂️ File Management",{"type":992,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"File management in Python is like being a digital organizer for your computer. You can check if files exist, find out information about them, organize them into folders, and keep your file system tidy. These skills are essential for building applications that work reliably with files and directories.",{"type":992,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Think of file management as your program's ability to be a helpful assistant - it can check what files are available, organize them properly, and maintain a clean workspace.",{"type":992,"tag":1012,"props":1013,"children":1014},"code-try",{},[1015],{"type":992,"tag":1016,"props":1017,"children":1020},"pre",{"className":1018,"code":1019,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","import os\n\n# 🎯 File Management Demo\n\n# Check if files exist\nprint(\"🔍 Checking file existence:\")\ntest_files = [\"example.txt\", \"missing.txt\", \"data.csv\"]\n\nfor filename in test_files:\n    if os.path.exists(filename):\n        print(f\"   ✅ {filename} exists\")\n    else:\n        print(f\"   ❌ {filename} not found\")\n\n# Create a sample file for testing\nwith open(\"sample.txt\", \"w\") as file:\n    file.write(\"This is a sample file for testing.\\n\")\n    file.write(\"It helps demonstrate file properties.\\n\")\n\nprint(\"\\n📋 File information:\")\nfilename = \"sample.txt\"\n\nif os.path.exists(filename):\n    # Get basic file properties\n    size = os.path.getsize(filename)\n    is_file = os.path.isfile(filename)\n    is_dir = os.path.isdir(filename)\n    \n    print(f\"   📄 {filename}\")\n    print(f\"   Size: {size} bytes\")\n    print(f\"   Is file: {is_file}\")\n    print(f\"   Is directory: {is_dir}\")\n\n# List directory contents\nprint(\"\\n📁 Current directory contents:\")\nfor item in os.listdir(\".\"):\n    if os.path.isfile(item):\n        print(f\"   📄 {item}\")\n    elif os.path.isdir(item):\n        print(f\"   📁 {item}\")\n\n# Create a directory\nnew_folder = \"my_files\"\nif not os.path.exists(new_folder):\n    os.mkdir(new_folder)\n    print(f\"\\n✅ Created directory: {new_folder}\")\n",[1021],{"type":992,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1042,1050,1059,1066,1074,1099,1146,1153,1176,1189,1235,1248,1289,1296,1304,1355,1387,1415,1422,1450,1467,1474,1486,1494,1511,1528,1545,1553,1594,1636,1677,1718,1725,1733,1761,1792,1804,1844,1857,1897,1904,1912,1929,1946,1954],{"type":992,"tag":1026,"props":1027,"children":1029},"span",{"class":1028,"line":12},"line",[1030,1036],{"type":992,"tag":1026,"props":1031,"children":1033},{"style":1032},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1034],{"type":998,"value":1035},"import",{"type":992,"tag":1026,"props":1037,"children":1039},{"style":1038},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1040],{"type":998,"value":1041}," os\n",{"type":992,"tag":1026,"props":1043,"children":1044},{"class":1028,"line":27},[1045],{"type":992,"tag":1026,"props":1046,"children":1047},{"emptyLinePlaceholder":13},[1048],{"type":998,"value":1049},"\n",{"type":992,"tag":1026,"props":1051,"children":1052},{"class":1028,"line":36},[1053],{"type":992,"tag":1026,"props":1054,"children":1056},{"style":1055},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1057],{"type":998,"value":1058},"# 🎯 File Management Demo\n",{"type":992,"tag":1026,"props":1060,"children":1061},{"class":1028,"line":45},[1062],{"type":992,"tag":1026,"props":1063,"children":1064},{"emptyLinePlaceholder":13},[1065],{"type":998,"value":1049},{"type":992,"tag":1026,"props":1067,"children":1068},{"class":1028,"line":54},[1069],{"type":992,"tag":1026,"props":1070,"children":1071},{"style":1055},[1072],{"type":998,"value":1073},"# Check if files exist\n",{"type":992,"tag":1026,"props":1075,"children":1076},{"class":1028,"line":63},[1077,1083,1088,1094],{"type":992,"tag":1026,"props":1078,"children":1080},{"style":1079},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1081],{"type":998,"value":1082},"print",{"type":992,"tag":1026,"props":1084,"children":1085},{"style":1038},[1086],{"type":998,"value":1087},"(",{"type":992,"tag":1026,"props":1089,"children":1091},{"style":1090},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1092],{"type":998,"value":1093},"\"🔍 Checking file existence:\"",{"type":992,"tag":1026,"props":1095,"children":1096},{"style":1038},[1097],{"type":998,"value":1098},")\n",{"type":992,"tag":1026,"props":1100,"children":1101},{"class":1028,"line":72},[1102,1107,1112,1117,1122,1127,1132,1136,1141],{"type":992,"tag":1026,"props":1103,"children":1104},{"style":1038},[1105],{"type":998,"value":1106},"test_files ",{"type":992,"tag":1026,"props":1108,"children":1109},{"style":1032},[1110],{"type":998,"value":1111},"=",{"type":992,"tag":1026,"props":1113,"children":1114},{"style":1038},[1115],{"type":998,"value":1116}," [",{"type":992,"tag":1026,"props":1118,"children":1119},{"style":1090},[1120],{"type":998,"value":1121},"\"example.txt\"",{"type":992,"tag":1026,"props":1123,"children":1124},{"style":1038},[1125],{"type":998,"value":1126},", ",{"type":992,"tag":1026,"props":1128,"children":1129},{"style":1090},[1130],{"type":998,"value":1131},"\"missing.txt\"",{"type":992,"tag":1026,"props":1133,"children":1134},{"style":1038},[1135],{"type":998,"value":1126},{"type":992,"tag":1026,"props":1137,"children":1138},{"style":1090},[1139],{"type":998,"value":1140},"\"data.csv\"",{"type":992,"tag":1026,"props":1142,"children":1143},{"style":1038},[1144],{"type":998,"value":1145},"]\n",{"type":992,"tag":1026,"props":1147,"children":1148},{"class":1028,"line":81},[1149],{"type":992,"tag":1026,"props":1150,"children":1151},{"emptyLinePlaceholder":13},[1152],{"type":998,"value":1049},{"type":992,"tag":1026,"props":1154,"children":1155},{"class":1028,"line":91},[1156,1161,1166,1171],{"type":992,"tag":1026,"props":1157,"children":1158},{"style":1032},[1159],{"type":998,"value":1160},"for",{"type":992,"tag":1026,"props":1162,"children":1163},{"style":1038},[1164],{"type":998,"value":1165}," filename ",{"type":992,"tag":1026,"props":1167,"children":1168},{"style":1032},[1169],{"type":998,"value":1170},"in",{"type":992,"tag":1026,"props":1172,"children":1173},{"style":1038},[1174],{"type":998,"value":1175}," test_files:\n",{"type":992,"tag":1026,"props":1177,"children":1178},{"class":1028,"line":100},[1179,1184],{"type":992,"tag":1026,"props":1180,"children":1181},{"style":1032},[1182],{"type":998,"value":1183},"    if",{"type":992,"tag":1026,"props":1185,"children":1186},{"style":1038},[1187],{"type":998,"value":1188}," os.path.exists(filename):\n",{"type":992,"tag":1026,"props":1190,"children":1191},{"class":1028,"line":109},[1192,1197,1201,1206,1211,1216,1221,1226,1231],{"type":992,"tag":1026,"props":1193,"children":1194},{"style":1079},[1195],{"type":998,"value":1196},"        print",{"type":992,"tag":1026,"props":1198,"children":1199},{"style":1038},[1200],{"type":998,"value":1087},{"type":992,"tag":1026,"props":1202,"children":1203},{"style":1032},[1204],{"type":998,"value":1205},"f",{"type":992,"tag":1026,"props":1207,"children":1208},{"style":1090},[1209],{"type":998,"value":1210},"\"   ✅ ",{"type":992,"tag":1026,"props":1212,"children":1213},{"style":1079},[1214],{"type":998,"value":1215},"{",{"type":992,"tag":1026,"props":1217,"children":1218},{"style":1038},[1219],{"type":998,"value":1220},"filename",{"type":992,"tag":1026,"props":1222,"children":1223},{"style":1079},[1224],{"type":998,"value":1225},"}",{"type":992,"tag":1026,"props":1227,"children":1228},{"style":1090},[1229],{"type":998,"value":1230}," exists\"",{"type":992,"tag":1026,"props":1232,"children":1233},{"style":1038},[1234],{"type":998,"value":1098},{"type":992,"tag":1026,"props":1236,"children":1237},{"class":1028,"line":118},[1238,1243],{"type":992,"tag":1026,"props":1239,"children":1240},{"style":1032},[1241],{"type":998,"value":1242},"    else",{"type":992,"tag":1026,"props":1244,"children":1245},{"style":1038},[1246],{"type":998,"value":1247},":\n",{"type":992,"tag":1026,"props":1249,"children":1250},{"class":1028,"line":127},[1251,1255,1259,1263,1268,1272,1276,1280,1285],{"type":992,"tag":1026,"props":1252,"children":1253},{"style":1079},[1254],{"type":998,"value":1196},{"type":992,"tag":1026,"props":1256,"children":1257},{"style":1038},[1258],{"type":998,"value":1087},{"type":992,"tag":1026,"props":1260,"children":1261},{"style":1032},[1262],{"type":998,"value":1205},{"type":992,"tag":1026,"props":1264,"children":1265},{"style":1090},[1266],{"type":998,"value":1267},"\"   ❌ ",{"type":992,"tag":1026,"props":1269,"children":1270},{"style":1079},[1271],{"type":998,"value":1215},{"type":992,"tag":1026,"props":1273,"children":1274},{"style":1038},[1275],{"type":998,"value":1220},{"type":992,"tag":1026,"props":1277,"children":1278},{"style":1079},[1279],{"type":998,"value":1225},{"type":992,"tag":1026,"props":1281,"children":1282},{"style":1090},[1283],{"type":998,"value":1284}," not found\"",{"type":992,"tag":1026,"props":1286,"children":1287},{"style":1038},[1288],{"type":998,"value":1098},{"type":992,"tag":1026,"props":1290,"children":1291},{"class":1028,"line":136},[1292],{"type":992,"tag":1026,"props":1293,"children":1294},{"emptyLinePlaceholder":13},[1295],{"type":998,"value":1049},{"type":992,"tag":1026,"props":1297,"children":1298},{"class":1028,"line":146},[1299],{"type":992,"tag":1026,"props":1300,"children":1301},{"style":1055},[1302],{"type":998,"value":1303},"# Create a sample file for testing\n",{"type":992,"tag":1026,"props":1305,"children":1306},{"class":1028,"line":155},[1307,1312,1317,1321,1326,1330,1335,1340,1345,1351],{"type":992,"tag":1026,"props":1308,"children":1309},{"style":1032},[1310],{"type":998,"value":1311},"with",{"type":992,"tag":1026,"props":1313,"children":1314},{"style":1079},[1315],{"type":998,"value":1316}," open",{"type":992,"tag":1026,"props":1318,"children":1319},{"style":1038},[1320],{"type":998,"value":1087},{"type":992,"tag":1026,"props":1322,"children":1323},{"style":1090},[1324],{"type":998,"value":1325},"\"sample.txt\"",{"type":992,"tag":1026,"props":1327,"children":1328},{"style":1038},[1329],{"type":998,"value":1126},{"type":992,"tag":1026,"props":1331,"children":1332},{"style":1090},[1333],{"type":998,"value":1334},"\"w\"",{"type":992,"tag":1026,"props":1336,"children":1337},{"style":1038},[1338],{"type":998,"value":1339},") ",{"type":992,"tag":1026,"props":1341,"children":1342},{"style":1032},[1343],{"type":998,"value":1344},"as",{"type":992,"tag":1026,"props":1346,"children":1348},{"style":1347},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[1349],{"type":998,"value":1350}," file",{"type":992,"tag":1026,"props":1352,"children":1353},{"style":1038},[1354],{"type":998,"value":1247},{"type":992,"tag":1026,"props":1356,"children":1357},{"class":1028,"line":164},[1358,1363,1368,1373,1378,1383],{"type":992,"tag":1026,"props":1359,"children":1360},{"style":1347},[1361],{"type":998,"value":1362},"    file",{"type":992,"tag":1026,"props":1364,"children":1365},{"style":1038},[1366],{"type":998,"value":1367},".write(",{"type":992,"tag":1026,"props":1369,"children":1370},{"style":1090},[1371],{"type":998,"value":1372},"\"This is a sample file for testing.",{"type":992,"tag":1026,"props":1374,"children":1375},{"style":1079},[1376],{"type":998,"value":1377},"\\n",{"type":992,"tag":1026,"props":1379,"children":1380},{"style":1090},[1381],{"type":998,"value":1382},"\"",{"type":992,"tag":1026,"props":1384,"children":1385},{"style":1038},[1386],{"type":998,"value":1098},{"type":992,"tag":1026,"props":1388,"children":1389},{"class":1028,"line":173},[1390,1394,1398,1403,1407,1411],{"type":992,"tag":1026,"props":1391,"children":1392},{"style":1347},[1393],{"type":998,"value":1362},{"type":992,"tag":1026,"props":1395,"children":1396},{"style":1038},[1397],{"type":998,"value":1367},{"type":992,"tag":1026,"props":1399,"children":1400},{"style":1090},[1401],{"type":998,"value":1402},"\"It helps demonstrate file properties.",{"type":992,"tag":1026,"props":1404,"children":1405},{"style":1079},[1406],{"type":998,"value":1377},{"type":992,"tag":1026,"props":1408,"children":1409},{"style":1090},[1410],{"type":998,"value":1382},{"type":992,"tag":1026,"props":1412,"children":1413},{"style":1038},[1414],{"type":998,"value":1098},{"type":992,"tag":1026,"props":1416,"children":1417},{"class":1028,"line":182},[1418],{"type":992,"tag":1026,"props":1419,"children":1420},{"emptyLinePlaceholder":13},[1421],{"type":998,"value":1049},{"type":992,"tag":1026,"props":1423,"children":1424},{"class":1028,"line":191},[1425,1429,1433,1437,1441,1446],{"type":992,"tag":1026,"props":1426,"children":1427},{"style":1079},[1428],{"type":998,"value":1082},{"type":992,"tag":1026,"props":1430,"children":1431},{"style":1038},[1432],{"type":998,"value":1087},{"type":992,"tag":1026,"props":1434,"children":1435},{"style":1090},[1436],{"type":998,"value":1382},{"type":992,"tag":1026,"props":1438,"children":1439},{"style":1079},[1440],{"type":998,"value":1377},{"type":992,"tag":1026,"props":1442,"children":1443},{"style":1090},[1444],{"type":998,"value":1445},"📋 File information:\"",{"type":992,"tag":1026,"props":1447,"children":1448},{"style":1038},[1449],{"type":998,"value":1098},{"type":992,"tag":1026,"props":1451,"children":1452},{"class":1028,"line":201},[1453,1458,1462],{"type":992,"tag":1026,"props":1454,"children":1455},{"style":1038},[1456],{"type":998,"value":1457},"filename ",{"type":992,"tag":1026,"props":1459,"children":1460},{"style":1032},[1461],{"type":998,"value":1111},{"type":992,"tag":1026,"props":1463,"children":1464},{"style":1090},[1465],{"type":998,"value":1466}," \"sample.txt\"\n",{"type":992,"tag":1026,"props":1468,"children":1469},{"class":1028,"line":210},[1470],{"type":992,"tag":1026,"props":1471,"children":1472},{"emptyLinePlaceholder":13},[1473],{"type":998,"value":1049},{"type":992,"tag":1026,"props":1475,"children":1476},{"class":1028,"line":219},[1477,1482],{"type":992,"tag":1026,"props":1478,"children":1479},{"style":1032},[1480],{"type":998,"value":1481},"if",{"type":992,"tag":1026,"props":1483,"children":1484},{"style":1038},[1485],{"type":998,"value":1188},{"type":992,"tag":1026,"props":1487,"children":1488},{"class":1028,"line":228},[1489],{"type":992,"tag":1026,"props":1490,"children":1491},{"style":1055},[1492],{"type":998,"value":1493},"    # Get basic file properties\n",{"type":992,"tag":1026,"props":1495,"children":1496},{"class":1028,"line":238},[1497,1502,1506],{"type":992,"tag":1026,"props":1498,"children":1499},{"style":1038},[1500],{"type":998,"value":1501},"    size ",{"type":992,"tag":1026,"props":1503,"children":1504},{"style":1032},[1505],{"type":998,"value":1111},{"type":992,"tag":1026,"props":1507,"children":1508},{"style":1038},[1509],{"type":998,"value":1510}," os.path.getsize(filename)\n",{"type":992,"tag":1026,"props":1512,"children":1513},{"class":1028,"line":247},[1514,1519,1523],{"type":992,"tag":1026,"props":1515,"children":1516},{"style":1038},[1517],{"type":998,"value":1518},"    is_file ",{"type":992,"tag":1026,"props":1520,"children":1521},{"style":1032},[1522],{"type":998,"value":1111},{"type":992,"tag":1026,"props":1524,"children":1525},{"style":1038},[1526],{"type":998,"value":1527}," os.path.isfile(filename)\n",{"type":992,"tag":1026,"props":1529,"children":1530},{"class":1028,"line":256},[1531,1536,1540],{"type":992,"tag":1026,"props":1532,"children":1533},{"style":1038},[1534],{"type":998,"value":1535},"    is_dir ",{"type":992,"tag":1026,"props":1537,"children":1538},{"style":1032},[1539],{"type":998,"value":1111},{"type":992,"tag":1026,"props":1541,"children":1542},{"style":1038},[1543],{"type":998,"value":1544}," os.path.isdir(filename)\n",{"type":992,"tag":1026,"props":1546,"children":1547},{"class":1028,"line":265},[1548],{"type":992,"tag":1026,"props":1549,"children":1550},{"style":1038},[1551],{"type":998,"value":1552},"    \n",{"type":992,"tag":1026,"props":1554,"children":1555},{"class":1028,"line":274},[1556,1561,1565,1569,1574,1578,1582,1586,1590],{"type":992,"tag":1026,"props":1557,"children":1558},{"style":1079},[1559],{"type":998,"value":1560},"    print",{"type":992,"tag":1026,"props":1562,"children":1563},{"style":1038},[1564],{"type":998,"value":1087},{"type":992,"tag":1026,"props":1566,"children":1567},{"style":1032},[1568],{"type":998,"value":1205},{"type":992,"tag":1026,"props":1570,"children":1571},{"style":1090},[1572],{"type":998,"value":1573},"\"   📄 ",{"type":992,"tag":1026,"props":1575,"children":1576},{"style":1079},[1577],{"type":998,"value":1215},{"type":992,"tag":1026,"props":1579,"children":1580},{"style":1038},[1581],{"type":998,"value":1220},{"type":992,"tag":1026,"props":1583,"children":1584},{"style":1079},[1585],{"type":998,"value":1225},{"type":992,"tag":1026,"props":1587,"children":1588},{"style":1090},[1589],{"type":998,"value":1382},{"type":992,"tag":1026,"props":1591,"children":1592},{"style":1038},[1593],{"type":998,"value":1098},{"type":992,"tag":1026,"props":1595,"children":1596},{"class":1028,"line":284},[1597,1601,1605,1609,1614,1618,1623,1627,1632],{"type":992,"tag":1026,"props":1598,"children":1599},{"style":1079},[1600],{"type":998,"value":1560},{"type":992,"tag":1026,"props":1602,"children":1603},{"style":1038},[1604],{"type":998,"value":1087},{"type":992,"tag":1026,"props":1606,"children":1607},{"style":1032},[1608],{"type":998,"value":1205},{"type":992,"tag":1026,"props":1610,"children":1611},{"style":1090},[1612],{"type":998,"value":1613},"\"   Size: ",{"type":992,"tag":1026,"props":1615,"children":1616},{"style":1079},[1617],{"type":998,"value":1215},{"type":992,"tag":1026,"props":1619,"children":1620},{"style":1038},[1621],{"type":998,"value":1622},"size",{"type":992,"tag":1026,"props":1624,"children":1625},{"style":1079},[1626],{"type":998,"value":1225},{"type":992,"tag":1026,"props":1628,"children":1629},{"style":1090},[1630],{"type":998,"value":1631}," bytes\"",{"type":992,"tag":1026,"props":1633,"children":1634},{"style":1038},[1635],{"type":998,"value":1098},{"type":992,"tag":1026,"props":1637,"children":1638},{"class":1028,"line":293},[1639,1643,1647,1651,1656,1660,1665,1669,1673],{"type":992,"tag":1026,"props":1640,"children":1641},{"style":1079},[1642],{"type":998,"value":1560},{"type":992,"tag":1026,"props":1644,"children":1645},{"style":1038},[1646],{"type":998,"value":1087},{"type":992,"tag":1026,"props":1648,"children":1649},{"style":1032},[1650],{"type":998,"value":1205},{"type":992,"tag":1026,"props":1652,"children":1653},{"style":1090},[1654],{"type":998,"value":1655},"\"   Is file: ",{"type":992,"tag":1026,"props":1657,"children":1658},{"style":1079},[1659],{"type":998,"value":1215},{"type":992,"tag":1026,"props":1661,"children":1662},{"style":1038},[1663],{"type":998,"value":1664},"is_file",{"type":992,"tag":1026,"props":1666,"children":1667},{"style":1079},[1668],{"type":998,"value":1225},{"type":992,"tag":1026,"props":1670,"children":1671},{"style":1090},[1672],{"type":998,"value":1382},{"type":992,"tag":1026,"props":1674,"children":1675},{"style":1038},[1676],{"type":998,"value":1098},{"type":992,"tag":1026,"props":1678,"children":1679},{"class":1028,"line":302},[1680,1684,1688,1692,1697,1701,1706,1710,1714],{"type":992,"tag":1026,"props":1681,"children":1682},{"style":1079},[1683],{"type":998,"value":1560},{"type":992,"tag":1026,"props":1685,"children":1686},{"style":1038},[1687],{"type":998,"value":1087},{"type":992,"tag":1026,"props":1689,"children":1690},{"style":1032},[1691],{"type":998,"value":1205},{"type":992,"tag":1026,"props":1693,"children":1694},{"style":1090},[1695],{"type":998,"value":1696},"\"   Is directory: ",{"type":992,"tag":1026,"props":1698,"children":1699},{"style":1079},[1700],{"type":998,"value":1215},{"type":992,"tag":1026,"props":1702,"children":1703},{"style":1038},[1704],{"type":998,"value":1705},"is_dir",{"type":992,"tag":1026,"props":1707,"children":1708},{"style":1079},[1709],{"type":998,"value":1225},{"type":992,"tag":1026,"props":1711,"children":1712},{"style":1090},[1713],{"type":998,"value":1382},{"type":992,"tag":1026,"props":1715,"children":1716},{"style":1038},[1717],{"type":998,"value":1098},{"type":992,"tag":1026,"props":1719,"children":1720},{"class":1028,"line":311},[1721],{"type":992,"tag":1026,"props":1722,"children":1723},{"emptyLinePlaceholder":13},[1724],{"type":998,"value":1049},{"type":992,"tag":1026,"props":1726,"children":1727},{"class":1028,"line":320},[1728],{"type":992,"tag":1026,"props":1729,"children":1730},{"style":1055},[1731],{"type":998,"value":1732},"# List directory contents\n",{"type":992,"tag":1026,"props":1734,"children":1735},{"class":1028,"line":329},[1736,1740,1744,1748,1752,1757],{"type":992,"tag":1026,"props":1737,"children":1738},{"style":1079},[1739],{"type":998,"value":1082},{"type":992,"tag":1026,"props":1741,"children":1742},{"style":1038},[1743],{"type":998,"value":1087},{"type":992,"tag":1026,"props":1745,"children":1746},{"style":1090},[1747],{"type":998,"value":1382},{"type":992,"tag":1026,"props":1749,"children":1750},{"style":1079},[1751],{"type":998,"value":1377},{"type":992,"tag":1026,"props":1753,"children":1754},{"style":1090},[1755],{"type":998,"value":1756},"📁 Current directory contents:\"",{"type":992,"tag":1026,"props":1758,"children":1759},{"style":1038},[1760],{"type":998,"value":1098},{"type":992,"tag":1026,"props":1762,"children":1763},{"class":1028,"line":338},[1764,1768,1773,1777,1782,1787],{"type":992,"tag":1026,"props":1765,"children":1766},{"style":1032},[1767],{"type":998,"value":1160},{"type":992,"tag":1026,"props":1769,"children":1770},{"style":1038},[1771],{"type":998,"value":1772}," item ",{"type":992,"tag":1026,"props":1774,"children":1775},{"style":1032},[1776],{"type":998,"value":1170},{"type":992,"tag":1026,"props":1778,"children":1779},{"style":1038},[1780],{"type":998,"value":1781}," os.listdir(",{"type":992,"tag":1026,"props":1783,"children":1784},{"style":1090},[1785],{"type":998,"value":1786},"\".\"",{"type":992,"tag":1026,"props":1788,"children":1789},{"style":1038},[1790],{"type":998,"value":1791},"):\n",{"type":992,"tag":1026,"props":1793,"children":1794},{"class":1028,"line":347},[1795,1799],{"type":992,"tag":1026,"props":1796,"children":1797},{"style":1032},[1798],{"type":998,"value":1183},{"type":992,"tag":1026,"props":1800,"children":1801},{"style":1038},[1802],{"type":998,"value":1803}," os.path.isfile(item):\n",{"type":992,"tag":1026,"props":1805,"children":1806},{"class":1028,"line":356},[1807,1811,1815,1819,1823,1827,1832,1836,1840],{"type":992,"tag":1026,"props":1808,"children":1809},{"style":1079},[1810],{"type":998,"value":1196},{"type":992,"tag":1026,"props":1812,"children":1813},{"style":1038},[1814],{"type":998,"value":1087},{"type":992,"tag":1026,"props":1816,"children":1817},{"style":1032},[1818],{"type":998,"value":1205},{"type":992,"tag":1026,"props":1820,"children":1821},{"style":1090},[1822],{"type":998,"value":1573},{"type":992,"tag":1026,"props":1824,"children":1825},{"style":1079},[1826],{"type":998,"value":1215},{"type":992,"tag":1026,"props":1828,"children":1829},{"style":1038},[1830],{"type":998,"value":1831},"item",{"type":992,"tag":1026,"props":1833,"children":1834},{"style":1079},[1835],{"type":998,"value":1225},{"type":992,"tag":1026,"props":1837,"children":1838},{"style":1090},[1839],{"type":998,"value":1382},{"type":992,"tag":1026,"props":1841,"children":1842},{"style":1038},[1843],{"type":998,"value":1098},{"type":992,"tag":1026,"props":1845,"children":1846},{"class":1028,"line":365},[1847,1852],{"type":992,"tag":1026,"props":1848,"children":1849},{"style":1032},[1850],{"type":998,"value":1851},"    elif",{"type":992,"tag":1026,"props":1853,"children":1854},{"style":1038},[1855],{"type":998,"value":1856}," os.path.isdir(item):\n",{"type":992,"tag":1026,"props":1858,"children":1859},{"class":1028,"line":374},[1860,1864,1868,1872,1877,1881,1885,1889,1893],{"type":992,"tag":1026,"props":1861,"children":1862},{"style":1079},[1863],{"type":998,"value":1196},{"type":992,"tag":1026,"props":1865,"children":1866},{"style":1038},[1867],{"type":998,"value":1087},{"type":992,"tag":1026,"props":1869,"children":1870},{"style":1032},[1871],{"type":998,"value":1205},{"type":992,"tag":1026,"props":1873,"children":1874},{"style":1090},[1875],{"type":998,"value":1876},"\"   📁 ",{"type":992,"tag":1026,"props":1878,"children":1879},{"style":1079},[1880],{"type":998,"value":1215},{"type":992,"tag":1026,"props":1882,"children":1883},{"style":1038},[1884],{"type":998,"value":1831},{"type":992,"tag":1026,"props":1886,"children":1887},{"style":1079},[1888],{"type":998,"value":1225},{"type":992,"tag":1026,"props":1890,"children":1891},{"style":1090},[1892],{"type":998,"value":1382},{"type":992,"tag":1026,"props":1894,"children":1895},{"style":1038},[1896],{"type":998,"value":1098},{"type":992,"tag":1026,"props":1898,"children":1899},{"class":1028,"line":384},[1900],{"type":992,"tag":1026,"props":1901,"children":1902},{"emptyLinePlaceholder":13},[1903],{"type":998,"value":1049},{"type":992,"tag":1026,"props":1905,"children":1906},{"class":1028,"line":393},[1907],{"type":992,"tag":1026,"props":1908,"children":1909},{"style":1055},[1910],{"type":998,"value":1911},"# Create a directory\n",{"type":992,"tag":1026,"props":1913,"children":1914},{"class":1028,"line":402},[1915,1920,1924],{"type":992,"tag":1026,"props":1916,"children":1917},{"style":1038},[1918],{"type":998,"value":1919},"new_folder ",{"type":992,"tag":1026,"props":1921,"children":1922},{"style":1032},[1923],{"type":998,"value":1111},{"type":992,"tag":1026,"props":1925,"children":1926},{"style":1090},[1927],{"type":998,"value":1928}," \"my_files\"\n",{"type":992,"tag":1026,"props":1930,"children":1931},{"class":1028,"line":411},[1932,1936,1941],{"type":992,"tag":1026,"props":1933,"children":1934},{"style":1032},[1935],{"type":998,"value":1481},{"type":992,"tag":1026,"props":1937,"children":1938},{"style":1032},[1939],{"type":998,"value":1940}," not",{"type":992,"tag":1026,"props":1942,"children":1943},{"style":1038},[1944],{"type":998,"value":1945}," os.path.exists(new_folder):\n",{"type":992,"tag":1026,"props":1947,"children":1948},{"class":1028,"line":420},[1949],{"type":992,"tag":1026,"props":1950,"children":1951},{"style":1038},[1952],{"type":998,"value":1953},"    os.mkdir(new_folder)\n",{"type":992,"tag":1026,"props":1955,"children":1956},{"class":1028,"line":429},[1957,1961,1965,1969,1973,1977,1982,1986,1991,1995,1999],{"type":992,"tag":1026,"props":1958,"children":1959},{"style":1079},[1960],{"type":998,"value":1560},{"type":992,"tag":1026,"props":1962,"children":1963},{"style":1038},[1964],{"type":998,"value":1087},{"type":992,"tag":1026,"props":1966,"children":1967},{"style":1032},[1968],{"type":998,"value":1205},{"type":992,"tag":1026,"props":1970,"children":1971},{"style":1090},[1972],{"type":998,"value":1382},{"type":992,"tag":1026,"props":1974,"children":1975},{"style":1079},[1976],{"type":998,"value":1377},{"type":992,"tag":1026,"props":1978,"children":1979},{"style":1090},[1980],{"type":998,"value":1981},"✅ Created directory: ",{"type":992,"tag":1026,"props":1983,"children":1984},{"style":1079},[1985],{"type":998,"value":1215},{"type":992,"tag":1026,"props":1987,"children":1988},{"style":1038},[1989],{"type":998,"value":1990},"new_folder",{"type":992,"tag":1026,"props":1992,"children":1993},{"style":1079},[1994],{"type":998,"value":1225},{"type":992,"tag":1026,"props":1996,"children":1997},{"style":1090},[1998],{"type":998,"value":1382},{"type":992,"tag":1026,"props":2000,"children":2001},{"style":1038},[2002],{"type":998,"value":1098},{"type":992,"tag":2004,"props":2005,"children":2007},"h2",{"id":2006},"understanding-file-system-operations",[2008],{"type":998,"value":2009},"🎯 Understanding File System Operations",{"type":992,"tag":1001,"props":2011,"children":2012},{},[2013],{"type":998,"value":2014},"File management involves checking properties, organizing files, and maintaining directory structures.",{"type":992,"tag":2016,"props":2017,"children":2021},"info-box",{"emoji":2018,"title":2019,"type":2020},"🔧","File Management Essentials","info",[2022,2031,2039,2084,2092,2135,2143,2186,2194,2237,2245],{"type":992,"tag":1001,"props":2023,"children":2024},{},[2025],{"type":992,"tag":2026,"props":2027,"children":2028},"strong",{},[2029],{"type":998,"value":2030},"Core Operations:",{"type":992,"tag":1001,"props":2032,"children":2033},{},[2034],{"type":992,"tag":2026,"props":2035,"children":2036},{},[2037],{"type":998,"value":2038},"🔍 File Checking:",{"type":992,"tag":2040,"props":2041,"children":2042},"ul",{},[2043,2054,2064,2074],{"type":992,"tag":2044,"props":2045,"children":2046},"li",{},[2047,2052],{"type":992,"tag":2026,"props":2048,"children":2049},{},[2050],{"type":998,"value":2051},"os.path.exists()",{"type":998,"value":2053}," - Check if file or directory exists",{"type":992,"tag":2044,"props":2055,"children":2056},{},[2057,2062],{"type":992,"tag":2026,"props":2058,"children":2059},{},[2060],{"type":998,"value":2061},"os.path.isfile()",{"type":998,"value":2063}," - Verify path is a file",{"type":992,"tag":2044,"props":2065,"children":2066},{},[2067,2072],{"type":992,"tag":2026,"props":2068,"children":2069},{},[2070],{"type":998,"value":2071},"os.path.isdir()",{"type":998,"value":2073}," - Verify path is a directory",{"type":992,"tag":2044,"props":2075,"children":2076},{},[2077,2082],{"type":992,"tag":2026,"props":2078,"children":2079},{},[2080],{"type":998,"value":2081},"os.access()",{"type":998,"value":2083}," - Check file permissions",{"type":992,"tag":1001,"props":2085,"children":2086},{},[2087],{"type":992,"tag":2026,"props":2088,"children":2089},{},[2090],{"type":998,"value":2091},"📊 File Properties:",{"type":992,"tag":2040,"props":2093,"children":2094},{},[2095,2105,2115,2125],{"type":992,"tag":2044,"props":2096,"children":2097},{},[2098,2103],{"type":992,"tag":2026,"props":2099,"children":2100},{},[2101],{"type":998,"value":2102},"os.path.getsize()",{"type":998,"value":2104}," - Get file size in bytes",{"type":992,"tag":2044,"props":2106,"children":2107},{},[2108,2113],{"type":992,"tag":2026,"props":2109,"children":2110},{},[2111],{"type":998,"value":2112},"os.path.getmtime()",{"type":998,"value":2114}," - Last modification time",{"type":992,"tag":2044,"props":2116,"children":2117},{},[2118,2123],{"type":992,"tag":2026,"props":2119,"children":2120},{},[2121],{"type":998,"value":2122},"os.path.getctime()",{"type":998,"value":2124}," - Creation time",{"type":992,"tag":2044,"props":2126,"children":2127},{},[2128,2133],{"type":992,"tag":2026,"props":2129,"children":2130},{},[2131],{"type":998,"value":2132},"os.stat()",{"type":998,"value":2134}," - Complete file statistics",{"type":992,"tag":1001,"props":2136,"children":2137},{},[2138],{"type":992,"tag":2026,"props":2139,"children":2140},{},[2141],{"type":998,"value":2142},"📁 Directory Operations:",{"type":992,"tag":2040,"props":2144,"children":2145},{},[2146,2156,2166,2176],{"type":992,"tag":2044,"props":2147,"children":2148},{},[2149,2154],{"type":992,"tag":2026,"props":2150,"children":2151},{},[2152],{"type":998,"value":2153},"os.listdir()",{"type":998,"value":2155}," - List directory contents",{"type":992,"tag":2044,"props":2157,"children":2158},{},[2159,2164],{"type":992,"tag":2026,"props":2160,"children":2161},{},[2162],{"type":998,"value":2163},"os.mkdir()",{"type":998,"value":2165}," - Create single directory",{"type":992,"tag":2044,"props":2167,"children":2168},{},[2169,2174],{"type":992,"tag":2026,"props":2170,"children":2171},{},[2172],{"type":998,"value":2173},"os.makedirs()",{"type":998,"value":2175}," - Create directory tree",{"type":992,"tag":2044,"props":2177,"children":2178},{},[2179,2184],{"type":992,"tag":2026,"props":2180,"children":2181},{},[2182],{"type":998,"value":2183},"os.rmdir()",{"type":998,"value":2185}," - Remove empty directory",{"type":992,"tag":1001,"props":2187,"children":2188},{},[2189],{"type":992,"tag":2026,"props":2190,"children":2191},{},[2192],{"type":998,"value":2193},"🔄 File Operations:",{"type":992,"tag":2040,"props":2195,"children":2196},{},[2197,2207,2217,2227],{"type":992,"tag":2044,"props":2198,"children":2199},{},[2200,2205],{"type":992,"tag":2026,"props":2201,"children":2202},{},[2203],{"type":998,"value":2204},"os.rename()",{"type":998,"value":2206}," - Rename files or directories",{"type":992,"tag":2044,"props":2208,"children":2209},{},[2210,2215],{"type":992,"tag":2026,"props":2211,"children":2212},{},[2213],{"type":998,"value":2214},"os.remove()",{"type":998,"value":2216}," - Delete files",{"type":992,"tag":2044,"props":2218,"children":2219},{},[2220,2225],{"type":992,"tag":2026,"props":2221,"children":2222},{},[2223],{"type":998,"value":2224},"shutil.copy()",{"type":998,"value":2226}," - Copy files",{"type":992,"tag":2044,"props":2228,"children":2229},{},[2230,2235],{"type":992,"tag":2026,"props":2231,"children":2232},{},[2233],{"type":998,"value":2234},"shutil.move()",{"type":998,"value":2236}," - Move files",{"type":992,"tag":1001,"props":2238,"children":2239},{},[2240],{"type":992,"tag":2026,"props":2241,"children":2242},{},[2243],{"type":998,"value":2244},"💡 Best Practices:",{"type":992,"tag":2040,"props":2246,"children":2247},{},[2248,2260,2272,2284,2294],{"type":992,"tag":2044,"props":2249,"children":2250},{},[2251,2253,2258],{"type":998,"value":2252},"Always ",{"type":992,"tag":2026,"props":2254,"children":2255},{},[2256],{"type":998,"value":2257},"check existence",{"type":998,"value":2259}," before operations",{"type":992,"tag":2044,"props":2261,"children":2262},{},[2263,2265,2270],{"type":998,"value":2264},"Handle ",{"type":992,"tag":2026,"props":2266,"children":2267},{},[2268],{"type":998,"value":2269},"permissions",{"type":998,"value":2271}," and errors gracefully",{"type":992,"tag":2044,"props":2273,"children":2274},{},[2275,2277,2282],{"type":998,"value":2276},"Use ",{"type":992,"tag":2026,"props":2278,"children":2279},{},[2280],{"type":998,"value":2281},"os.path.join()",{"type":998,"value":2283}," for cross-platform paths",{"type":992,"tag":2044,"props":2285,"children":2286},{},[2287,2292],{"type":992,"tag":2026,"props":2288,"children":2289},{},[2290],{"type":998,"value":2291},"Backup important files",{"type":998,"value":2293}," before changes",{"type":992,"tag":2044,"props":2295,"children":2296},{},[2297,2302],{"type":992,"tag":2026,"props":2298,"children":2299},{},[2300],{"type":998,"value":2301},"Validate paths",{"type":998,"value":2303}," to prevent security issues",{"type":992,"tag":2305,"props":2306,"children":2308},"h3",{"id":2307},"file-properties-and-information",[2309],{"type":998,"value":2310},"📊 File Properties and Information",{"type":992,"tag":1001,"props":2312,"children":2313},{},[2314],{"type":998,"value":2315},"Understanding file properties helps you make decisions about how to handle different files.",{"type":992,"tag":1012,"props":2317,"children":2318},{},[2319],{"type":992,"tag":1016,"props":2320,"children":2322},{"className":1018,"code":2321,"language":6,"meta":8,"style":8},"import os\nimport time\n\n# 📊 File Properties Demo\n\ndef analyze_file_properties():\n    # Create test files with different content\n    test_files = {\n        \"small.txt\": \"Small file content.\",\n        \"medium.txt\": \"Medium file with more content. \" * 10,\n        \"large.txt\": \"Large file content. \" * 100\n    }\n    \n    print(\"📄 Creating test files:\")\n    for filename, content in test_files.items():\n        with open(filename, \"w\") as file:\n            file.write(content)\n        print(f\"   ✅ Created {filename}\")\n    \n    print(\"\\n📊 File Analysis:\")\n    print(\"-\" * 40)\n    \n    for filename in test_files.keys():\n        if os.path.exists(filename):\n            # Get file stats\n            stats = os.stat(filename)\n            \n            print(f\"\\n📄 {filename}:\")\n            print(f\"   Size: {stats.st_size} bytes\")\n            \n            # Convert size to readable format\n            size = stats.st_size\n            if size > 1024:\n                print(f\"   Size: {size/1024:.1f} KB\")\n            \n            # Time information\n            mod_time = time.ctime(stats.st_mtime)\n            print(f\"   Modified: {mod_time}\")\n            \n            # File permissions (simplified)\n            readable = os.access(filename, os.R_OK)\n            writable = os.access(filename, os.W_OK)\n            print(f\"   Readable: {readable}\")\n            print(f\"   Writable: {writable}\")\n\nanalyze_file_properties()\n",[2323],{"type":992,"tag":1022,"props":2324,"children":2325},{"__ignoreMap":8},[2326,2337,2349,2356,2364,2371,2390,2398,2415,2438,2469,2495,2503,2510,2530,2552,2589,2602,2642,2649,2677,2706,2713,2733,2745,2753,2770,2778,2828,2868,2875,2883,2900,2927,2983,2990,2998,3015,3056,3063,3071,3097,3122,3163,3204,3211],{"type":992,"tag":1026,"props":2327,"children":2328},{"class":1028,"line":12},[2329,2333],{"type":992,"tag":1026,"props":2330,"children":2331},{"style":1032},[2332],{"type":998,"value":1035},{"type":992,"tag":1026,"props":2334,"children":2335},{"style":1038},[2336],{"type":998,"value":1041},{"type":992,"tag":1026,"props":2338,"children":2339},{"class":1028,"line":27},[2340,2344],{"type":992,"tag":1026,"props":2341,"children":2342},{"style":1032},[2343],{"type":998,"value":1035},{"type":992,"tag":1026,"props":2345,"children":2346},{"style":1038},[2347],{"type":998,"value":2348}," time\n",{"type":992,"tag":1026,"props":2350,"children":2351},{"class":1028,"line":36},[2352],{"type":992,"tag":1026,"props":2353,"children":2354},{"emptyLinePlaceholder":13},[2355],{"type":998,"value":1049},{"type":992,"tag":1026,"props":2357,"children":2358},{"class":1028,"line":45},[2359],{"type":992,"tag":1026,"props":2360,"children":2361},{"style":1055},[2362],{"type":998,"value":2363},"# 📊 File Properties Demo\n",{"type":992,"tag":1026,"props":2365,"children":2366},{"class":1028,"line":54},[2367],{"type":992,"tag":1026,"props":2368,"children":2369},{"emptyLinePlaceholder":13},[2370],{"type":998,"value":1049},{"type":992,"tag":1026,"props":2372,"children":2373},{"class":1028,"line":63},[2374,2379,2385],{"type":992,"tag":1026,"props":2375,"children":2376},{"style":1032},[2377],{"type":998,"value":2378},"def",{"type":992,"tag":1026,"props":2380,"children":2382},{"style":2381},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[2383],{"type":998,"value":2384}," analyze_file_properties",{"type":992,"tag":1026,"props":2386,"children":2387},{"style":1038},[2388],{"type":998,"value":2389},"():\n",{"type":992,"tag":1026,"props":2391,"children":2392},{"class":1028,"line":72},[2393],{"type":992,"tag":1026,"props":2394,"children":2395},{"style":1055},[2396],{"type":998,"value":2397},"    # Create test files with different content\n",{"type":992,"tag":1026,"props":2399,"children":2400},{"class":1028,"line":81},[2401,2406,2410],{"type":992,"tag":1026,"props":2402,"children":2403},{"style":1038},[2404],{"type":998,"value":2405},"    test_files ",{"type":992,"tag":1026,"props":2407,"children":2408},{"style":1032},[2409],{"type":998,"value":1111},{"type":992,"tag":1026,"props":2411,"children":2412},{"style":1038},[2413],{"type":998,"value":2414}," {\n",{"type":992,"tag":1026,"props":2416,"children":2417},{"class":1028,"line":91},[2418,2423,2428,2433],{"type":992,"tag":1026,"props":2419,"children":2420},{"style":1090},[2421],{"type":998,"value":2422},"        \"small.txt\"",{"type":992,"tag":1026,"props":2424,"children":2425},{"style":1038},[2426],{"type":998,"value":2427},": ",{"type":992,"tag":1026,"props":2429,"children":2430},{"style":1090},[2431],{"type":998,"value":2432},"\"Small file content.\"",{"type":992,"tag":1026,"props":2434,"children":2435},{"style":1038},[2436],{"type":998,"value":2437},",\n",{"type":992,"tag":1026,"props":2439,"children":2440},{"class":1028,"line":100},[2441,2446,2450,2455,2460,2465],{"type":992,"tag":1026,"props":2442,"children":2443},{"style":1090},[2444],{"type":998,"value":2445},"        \"medium.txt\"",{"type":992,"tag":1026,"props":2447,"children":2448},{"style":1038},[2449],{"type":998,"value":2427},{"type":992,"tag":1026,"props":2451,"children":2452},{"style":1090},[2453],{"type":998,"value":2454},"\"Medium file with more content. \"",{"type":992,"tag":1026,"props":2456,"children":2457},{"style":1032},[2458],{"type":998,"value":2459}," *",{"type":992,"tag":1026,"props":2461,"children":2462},{"style":1079},[2463],{"type":998,"value":2464}," 10",{"type":992,"tag":1026,"props":2466,"children":2467},{"style":1038},[2468],{"type":998,"value":2437},{"type":992,"tag":1026,"props":2470,"children":2471},{"class":1028,"line":109},[2472,2477,2481,2486,2490],{"type":992,"tag":1026,"props":2473,"children":2474},{"style":1090},[2475],{"type":998,"value":2476},"        \"large.txt\"",{"type":992,"tag":1026,"props":2478,"children":2479},{"style":1038},[2480],{"type":998,"value":2427},{"type":992,"tag":1026,"props":2482,"children":2483},{"style":1090},[2484],{"type":998,"value":2485},"\"Large file content. \"",{"type":992,"tag":1026,"props":2487,"children":2488},{"style":1032},[2489],{"type":998,"value":2459},{"type":992,"tag":1026,"props":2491,"children":2492},{"style":1079},[2493],{"type":998,"value":2494}," 100\n",{"type":992,"tag":1026,"props":2496,"children":2497},{"class":1028,"line":118},[2498],{"type":992,"tag":1026,"props":2499,"children":2500},{"style":1038},[2501],{"type":998,"value":2502},"    }\n",{"type":992,"tag":1026,"props":2504,"children":2505},{"class":1028,"line":127},[2506],{"type":992,"tag":1026,"props":2507,"children":2508},{"style":1038},[2509],{"type":998,"value":1552},{"type":992,"tag":1026,"props":2511,"children":2512},{"class":1028,"line":136},[2513,2517,2521,2526],{"type":992,"tag":1026,"props":2514,"children":2515},{"style":1079},[2516],{"type":998,"value":1560},{"type":992,"tag":1026,"props":2518,"children":2519},{"style":1038},[2520],{"type":998,"value":1087},{"type":992,"tag":1026,"props":2522,"children":2523},{"style":1090},[2524],{"type":998,"value":2525},"\"📄 Creating test files:\"",{"type":992,"tag":1026,"props":2527,"children":2528},{"style":1038},[2529],{"type":998,"value":1098},{"type":992,"tag":1026,"props":2531,"children":2532},{"class":1028,"line":146},[2533,2538,2543,2547],{"type":992,"tag":1026,"props":2534,"children":2535},{"style":1032},[2536],{"type":998,"value":2537},"    for",{"type":992,"tag":1026,"props":2539,"children":2540},{"style":1038},[2541],{"type":998,"value":2542}," filename, content ",{"type":992,"tag":1026,"props":2544,"children":2545},{"style":1032},[2546],{"type":998,"value":1170},{"type":992,"tag":1026,"props":2548,"children":2549},{"style":1038},[2550],{"type":998,"value":2551}," test_files.items():\n",{"type":992,"tag":1026,"props":2553,"children":2554},{"class":1028,"line":155},[2555,2560,2564,2569,2573,2577,2581,2585],{"type":992,"tag":1026,"props":2556,"children":2557},{"style":1032},[2558],{"type":998,"value":2559},"        with",{"type":992,"tag":1026,"props":2561,"children":2562},{"style":1079},[2563],{"type":998,"value":1316},{"type":992,"tag":1026,"props":2565,"children":2566},{"style":1038},[2567],{"type":998,"value":2568},"(filename, ",{"type":992,"tag":1026,"props":2570,"children":2571},{"style":1090},[2572],{"type":998,"value":1334},{"type":992,"tag":1026,"props":2574,"children":2575},{"style":1038},[2576],{"type":998,"value":1339},{"type":992,"tag":1026,"props":2578,"children":2579},{"style":1032},[2580],{"type":998,"value":1344},{"type":992,"tag":1026,"props":2582,"children":2583},{"style":1347},[2584],{"type":998,"value":1350},{"type":992,"tag":1026,"props":2586,"children":2587},{"style":1038},[2588],{"type":998,"value":1247},{"type":992,"tag":1026,"props":2590,"children":2591},{"class":1028,"line":164},[2592,2597],{"type":992,"tag":1026,"props":2593,"children":2594},{"style":1347},[2595],{"type":998,"value":2596},"            file",{"type":992,"tag":1026,"props":2598,"children":2599},{"style":1038},[2600],{"type":998,"value":2601},".write(content)\n",{"type":992,"tag":1026,"props":2603,"children":2604},{"class":1028,"line":173},[2605,2609,2613,2617,2622,2626,2630,2634,2638],{"type":992,"tag":1026,"props":2606,"children":2607},{"style":1079},[2608],{"type":998,"value":1196},{"type":992,"tag":1026,"props":2610,"children":2611},{"style":1038},[2612],{"type":998,"value":1087},{"type":992,"tag":1026,"props":2614,"children":2615},{"style":1032},[2616],{"type":998,"value":1205},{"type":992,"tag":1026,"props":2618,"children":2619},{"style":1090},[2620],{"type":998,"value":2621},"\"   ✅ Created ",{"type":992,"tag":1026,"props":2623,"children":2624},{"style":1079},[2625],{"type":998,"value":1215},{"type":992,"tag":1026,"props":2627,"children":2628},{"style":1038},[2629],{"type":998,"value":1220},{"type":992,"tag":1026,"props":2631,"children":2632},{"style":1079},[2633],{"type":998,"value":1225},{"type":992,"tag":1026,"props":2635,"children":2636},{"style":1090},[2637],{"type":998,"value":1382},{"type":992,"tag":1026,"props":2639,"children":2640},{"style":1038},[2641],{"type":998,"value":1098},{"type":992,"tag":1026,"props":2643,"children":2644},{"class":1028,"line":182},[2645],{"type":992,"tag":1026,"props":2646,"children":2647},{"style":1038},[2648],{"type":998,"value":1552},{"type":992,"tag":1026,"props":2650,"children":2651},{"class":1028,"line":191},[2652,2656,2660,2664,2668,2673],{"type":992,"tag":1026,"props":2653,"children":2654},{"style":1079},[2655],{"type":998,"value":1560},{"type":992,"tag":1026,"props":2657,"children":2658},{"style":1038},[2659],{"type":998,"value":1087},{"type":992,"tag":1026,"props":2661,"children":2662},{"style":1090},[2663],{"type":998,"value":1382},{"type":992,"tag":1026,"props":2665,"children":2666},{"style":1079},[2667],{"type":998,"value":1377},{"type":992,"tag":1026,"props":2669,"children":2670},{"style":1090},[2671],{"type":998,"value":2672},"📊 File Analysis:\"",{"type":992,"tag":1026,"props":2674,"children":2675},{"style":1038},[2676],{"type":998,"value":1098},{"type":992,"tag":1026,"props":2678,"children":2679},{"class":1028,"line":201},[2680,2684,2688,2693,2697,2702],{"type":992,"tag":1026,"props":2681,"children":2682},{"style":1079},[2683],{"type":998,"value":1560},{"type":992,"tag":1026,"props":2685,"children":2686},{"style":1038},[2687],{"type":998,"value":1087},{"type":992,"tag":1026,"props":2689,"children":2690},{"style":1090},[2691],{"type":998,"value":2692},"\"-\"",{"type":992,"tag":1026,"props":2694,"children":2695},{"style":1032},[2696],{"type":998,"value":2459},{"type":992,"tag":1026,"props":2698,"children":2699},{"style":1079},[2700],{"type":998,"value":2701}," 40",{"type":992,"tag":1026,"props":2703,"children":2704},{"style":1038},[2705],{"type":998,"value":1098},{"type":992,"tag":1026,"props":2707,"children":2708},{"class":1028,"line":210},[2709],{"type":992,"tag":1026,"props":2710,"children":2711},{"style":1038},[2712],{"type":998,"value":1552},{"type":992,"tag":1026,"props":2714,"children":2715},{"class":1028,"line":219},[2716,2720,2724,2728],{"type":992,"tag":1026,"props":2717,"children":2718},{"style":1032},[2719],{"type":998,"value":2537},{"type":992,"tag":1026,"props":2721,"children":2722},{"style":1038},[2723],{"type":998,"value":1165},{"type":992,"tag":1026,"props":2725,"children":2726},{"style":1032},[2727],{"type":998,"value":1170},{"type":992,"tag":1026,"props":2729,"children":2730},{"style":1038},[2731],{"type":998,"value":2732}," test_files.keys():\n",{"type":992,"tag":1026,"props":2734,"children":2735},{"class":1028,"line":228},[2736,2741],{"type":992,"tag":1026,"props":2737,"children":2738},{"style":1032},[2739],{"type":998,"value":2740},"        if",{"type":992,"tag":1026,"props":2742,"children":2743},{"style":1038},[2744],{"type":998,"value":1188},{"type":992,"tag":1026,"props":2746,"children":2747},{"class":1028,"line":238},[2748],{"type":992,"tag":1026,"props":2749,"children":2750},{"style":1055},[2751],{"type":998,"value":2752},"            # Get file stats\n",{"type":992,"tag":1026,"props":2754,"children":2755},{"class":1028,"line":247},[2756,2761,2765],{"type":992,"tag":1026,"props":2757,"children":2758},{"style":1038},[2759],{"type":998,"value":2760},"            stats ",{"type":992,"tag":1026,"props":2762,"children":2763},{"style":1032},[2764],{"type":998,"value":1111},{"type":992,"tag":1026,"props":2766,"children":2767},{"style":1038},[2768],{"type":998,"value":2769}," os.stat(filename)\n",{"type":992,"tag":1026,"props":2771,"children":2772},{"class":1028,"line":256},[2773],{"type":992,"tag":1026,"props":2774,"children":2775},{"style":1038},[2776],{"type":998,"value":2777},"            \n",{"type":992,"tag":1026,"props":2779,"children":2780},{"class":1028,"line":265},[2781,2786,2790,2794,2798,2802,2807,2811,2815,2819,2824],{"type":992,"tag":1026,"props":2782,"children":2783},{"style":1079},[2784],{"type":998,"value":2785},"            print",{"type":992,"tag":1026,"props":2787,"children":2788},{"style":1038},[2789],{"type":998,"value":1087},{"type":992,"tag":1026,"props":2791,"children":2792},{"style":1032},[2793],{"type":998,"value":1205},{"type":992,"tag":1026,"props":2795,"children":2796},{"style":1090},[2797],{"type":998,"value":1382},{"type":992,"tag":1026,"props":2799,"children":2800},{"style":1079},[2801],{"type":998,"value":1377},{"type":992,"tag":1026,"props":2803,"children":2804},{"style":1090},[2805],{"type":998,"value":2806},"📄 ",{"type":992,"tag":1026,"props":2808,"children":2809},{"style":1079},[2810],{"type":998,"value":1215},{"type":992,"tag":1026,"props":2812,"children":2813},{"style":1038},[2814],{"type":998,"value":1220},{"type":992,"tag":1026,"props":2816,"children":2817},{"style":1079},[2818],{"type":998,"value":1225},{"type":992,"tag":1026,"props":2820,"children":2821},{"style":1090},[2822],{"type":998,"value":2823},":\"",{"type":992,"tag":1026,"props":2825,"children":2826},{"style":1038},[2827],{"type":998,"value":1098},{"type":992,"tag":1026,"props":2829,"children":2830},{"class":1028,"line":274},[2831,2835,2839,2843,2847,2851,2856,2860,2864],{"type":992,"tag":1026,"props":2832,"children":2833},{"style":1079},[2834],{"type":998,"value":2785},{"type":992,"tag":1026,"props":2836,"children":2837},{"style":1038},[2838],{"type":998,"value":1087},{"type":992,"tag":1026,"props":2840,"children":2841},{"style":1032},[2842],{"type":998,"value":1205},{"type":992,"tag":1026,"props":2844,"children":2845},{"style":1090},[2846],{"type":998,"value":1613},{"type":992,"tag":1026,"props":2848,"children":2849},{"style":1079},[2850],{"type":998,"value":1215},{"type":992,"tag":1026,"props":2852,"children":2853},{"style":1038},[2854],{"type":998,"value":2855},"stats.st_size",{"type":992,"tag":1026,"props":2857,"children":2858},{"style":1079},[2859],{"type":998,"value":1225},{"type":992,"tag":1026,"props":2861,"children":2862},{"style":1090},[2863],{"type":998,"value":1631},{"type":992,"tag":1026,"props":2865,"children":2866},{"style":1038},[2867],{"type":998,"value":1098},{"type":992,"tag":1026,"props":2869,"children":2870},{"class":1028,"line":284},[2871],{"type":992,"tag":1026,"props":2872,"children":2873},{"style":1038},[2874],{"type":998,"value":2777},{"type":992,"tag":1026,"props":2876,"children":2877},{"class":1028,"line":293},[2878],{"type":992,"tag":1026,"props":2879,"children":2880},{"style":1055},[2881],{"type":998,"value":2882},"            # Convert size to readable format\n",{"type":992,"tag":1026,"props":2884,"children":2885},{"class":1028,"line":302},[2886,2891,2895],{"type":992,"tag":1026,"props":2887,"children":2888},{"style":1038},[2889],{"type":998,"value":2890},"            size ",{"type":992,"tag":1026,"props":2892,"children":2893},{"style":1032},[2894],{"type":998,"value":1111},{"type":992,"tag":1026,"props":2896,"children":2897},{"style":1038},[2898],{"type":998,"value":2899}," stats.st_size\n",{"type":992,"tag":1026,"props":2901,"children":2902},{"class":1028,"line":311},[2903,2908,2913,2918,2923],{"type":992,"tag":1026,"props":2904,"children":2905},{"style":1032},[2906],{"type":998,"value":2907},"            if",{"type":992,"tag":1026,"props":2909,"children":2910},{"style":1038},[2911],{"type":998,"value":2912}," size ",{"type":992,"tag":1026,"props":2914,"children":2915},{"style":1032},[2916],{"type":998,"value":2917},">",{"type":992,"tag":1026,"props":2919,"children":2920},{"style":1079},[2921],{"type":998,"value":2922}," 1024",{"type":992,"tag":1026,"props":2924,"children":2925},{"style":1038},[2926],{"type":998,"value":1247},{"type":992,"tag":1026,"props":2928,"children":2929},{"class":1028,"line":320},[2930,2935,2939,2943,2947,2951,2955,2960,2965,2970,2974,2979],{"type":992,"tag":1026,"props":2931,"children":2932},{"style":1079},[2933],{"type":998,"value":2934},"                print",{"type":992,"tag":1026,"props":2936,"children":2937},{"style":1038},[2938],{"type":998,"value":1087},{"type":992,"tag":1026,"props":2940,"children":2941},{"style":1032},[2942],{"type":998,"value":1205},{"type":992,"tag":1026,"props":2944,"children":2945},{"style":1090},[2946],{"type":998,"value":1613},{"type":992,"tag":1026,"props":2948,"children":2949},{"style":1079},[2950],{"type":998,"value":1215},{"type":992,"tag":1026,"props":2952,"children":2953},{"style":1038},[2954],{"type":998,"value":1622},{"type":992,"tag":1026,"props":2956,"children":2957},{"style":1032},[2958],{"type":998,"value":2959},"/",{"type":992,"tag":1026,"props":2961,"children":2962},{"style":1079},[2963],{"type":998,"value":2964},"1024",{"type":992,"tag":1026,"props":2966,"children":2967},{"style":1032},[2968],{"type":998,"value":2969},":.1f",{"type":992,"tag":1026,"props":2971,"children":2972},{"style":1079},[2973],{"type":998,"value":1225},{"type":992,"tag":1026,"props":2975,"children":2976},{"style":1090},[2977],{"type":998,"value":2978}," KB\"",{"type":992,"tag":1026,"props":2980,"children":2981},{"style":1038},[2982],{"type":998,"value":1098},{"type":992,"tag":1026,"props":2984,"children":2985},{"class":1028,"line":329},[2986],{"type":992,"tag":1026,"props":2987,"children":2988},{"style":1038},[2989],{"type":998,"value":2777},{"type":992,"tag":1026,"props":2991,"children":2992},{"class":1028,"line":338},[2993],{"type":992,"tag":1026,"props":2994,"children":2995},{"style":1055},[2996],{"type":998,"value":2997},"            # Time information\n",{"type":992,"tag":1026,"props":2999,"children":3000},{"class":1028,"line":347},[3001,3006,3010],{"type":992,"tag":1026,"props":3002,"children":3003},{"style":1038},[3004],{"type":998,"value":3005},"            mod_time ",{"type":992,"tag":1026,"props":3007,"children":3008},{"style":1032},[3009],{"type":998,"value":1111},{"type":992,"tag":1026,"props":3011,"children":3012},{"style":1038},[3013],{"type":998,"value":3014}," time.ctime(stats.st_mtime)\n",{"type":992,"tag":1026,"props":3016,"children":3017},{"class":1028,"line":356},[3018,3022,3026,3030,3035,3039,3044,3048,3052],{"type":992,"tag":1026,"props":3019,"children":3020},{"style":1079},[3021],{"type":998,"value":2785},{"type":992,"tag":1026,"props":3023,"children":3024},{"style":1038},[3025],{"type":998,"value":1087},{"type":992,"tag":1026,"props":3027,"children":3028},{"style":1032},[3029],{"type":998,"value":1205},{"type":992,"tag":1026,"props":3031,"children":3032},{"style":1090},[3033],{"type":998,"value":3034},"\"   Modified: ",{"type":992,"tag":1026,"props":3036,"children":3037},{"style":1079},[3038],{"type":998,"value":1215},{"type":992,"tag":1026,"props":3040,"children":3041},{"style":1038},[3042],{"type":998,"value":3043},"mod_time",{"type":992,"tag":1026,"props":3045,"children":3046},{"style":1079},[3047],{"type":998,"value":1225},{"type":992,"tag":1026,"props":3049,"children":3050},{"style":1090},[3051],{"type":998,"value":1382},{"type":992,"tag":1026,"props":3053,"children":3054},{"style":1038},[3055],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3057,"children":3058},{"class":1028,"line":365},[3059],{"type":992,"tag":1026,"props":3060,"children":3061},{"style":1038},[3062],{"type":998,"value":2777},{"type":992,"tag":1026,"props":3064,"children":3065},{"class":1028,"line":374},[3066],{"type":992,"tag":1026,"props":3067,"children":3068},{"style":1055},[3069],{"type":998,"value":3070},"            # File permissions (simplified)\n",{"type":992,"tag":1026,"props":3072,"children":3073},{"class":1028,"line":384},[3074,3079,3083,3088,3093],{"type":992,"tag":1026,"props":3075,"children":3076},{"style":1038},[3077],{"type":998,"value":3078},"            readable ",{"type":992,"tag":1026,"props":3080,"children":3081},{"style":1032},[3082],{"type":998,"value":1111},{"type":992,"tag":1026,"props":3084,"children":3085},{"style":1038},[3086],{"type":998,"value":3087}," os.access(filename, os.",{"type":992,"tag":1026,"props":3089,"children":3090},{"style":1079},[3091],{"type":998,"value":3092},"R_OK",{"type":992,"tag":1026,"props":3094,"children":3095},{"style":1038},[3096],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3098,"children":3099},{"class":1028,"line":393},[3100,3105,3109,3113,3118],{"type":992,"tag":1026,"props":3101,"children":3102},{"style":1038},[3103],{"type":998,"value":3104},"            writable ",{"type":992,"tag":1026,"props":3106,"children":3107},{"style":1032},[3108],{"type":998,"value":1111},{"type":992,"tag":1026,"props":3110,"children":3111},{"style":1038},[3112],{"type":998,"value":3087},{"type":992,"tag":1026,"props":3114,"children":3115},{"style":1079},[3116],{"type":998,"value":3117},"W_OK",{"type":992,"tag":1026,"props":3119,"children":3120},{"style":1038},[3121],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3123,"children":3124},{"class":1028,"line":402},[3125,3129,3133,3137,3142,3146,3151,3155,3159],{"type":992,"tag":1026,"props":3126,"children":3127},{"style":1079},[3128],{"type":998,"value":2785},{"type":992,"tag":1026,"props":3130,"children":3131},{"style":1038},[3132],{"type":998,"value":1087},{"type":992,"tag":1026,"props":3134,"children":3135},{"style":1032},[3136],{"type":998,"value":1205},{"type":992,"tag":1026,"props":3138,"children":3139},{"style":1090},[3140],{"type":998,"value":3141},"\"   Readable: ",{"type":992,"tag":1026,"props":3143,"children":3144},{"style":1079},[3145],{"type":998,"value":1215},{"type":992,"tag":1026,"props":3147,"children":3148},{"style":1038},[3149],{"type":998,"value":3150},"readable",{"type":992,"tag":1026,"props":3152,"children":3153},{"style":1079},[3154],{"type":998,"value":1225},{"type":992,"tag":1026,"props":3156,"children":3157},{"style":1090},[3158],{"type":998,"value":1382},{"type":992,"tag":1026,"props":3160,"children":3161},{"style":1038},[3162],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3164,"children":3165},{"class":1028,"line":411},[3166,3170,3174,3178,3183,3187,3192,3196,3200],{"type":992,"tag":1026,"props":3167,"children":3168},{"style":1079},[3169],{"type":998,"value":2785},{"type":992,"tag":1026,"props":3171,"children":3172},{"style":1038},[3173],{"type":998,"value":1087},{"type":992,"tag":1026,"props":3175,"children":3176},{"style":1032},[3177],{"type":998,"value":1205},{"type":992,"tag":1026,"props":3179,"children":3180},{"style":1090},[3181],{"type":998,"value":3182},"\"   Writable: ",{"type":992,"tag":1026,"props":3184,"children":3185},{"style":1079},[3186],{"type":998,"value":1215},{"type":992,"tag":1026,"props":3188,"children":3189},{"style":1038},[3190],{"type":998,"value":3191},"writable",{"type":992,"tag":1026,"props":3193,"children":3194},{"style":1079},[3195],{"type":998,"value":1225},{"type":992,"tag":1026,"props":3197,"children":3198},{"style":1090},[3199],{"type":998,"value":1382},{"type":992,"tag":1026,"props":3201,"children":3202},{"style":1038},[3203],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3205,"children":3206},{"class":1028,"line":420},[3207],{"type":992,"tag":1026,"props":3208,"children":3209},{"emptyLinePlaceholder":13},[3210],{"type":998,"value":1049},{"type":992,"tag":1026,"props":3212,"children":3213},{"class":1028,"line":429},[3214],{"type":992,"tag":1026,"props":3215,"children":3216},{"style":1038},[3217],{"type":998,"value":3218},"analyze_file_properties()\n",{"type":992,"tag":2305,"props":3220,"children":3222},{"id":3221},"directory-operations",[3223],{"type":998,"value":3224},"📁 Directory Operations",{"type":992,"tag":1001,"props":3226,"children":3227},{},[3228],{"type":998,"value":3229},"Working with directories lets you organize files into logical groups and create structured file systems.",{"type":992,"tag":1012,"props":3231,"children":3232},{},[3233],{"type":992,"tag":1016,"props":3234,"children":3236},{"className":1018,"code":3235,"language":6,"meta":8,"style":8},"import os\n\n# 📁 Directory Management Demo\n\ndef directory_operations():\n    print(\"📁 Directory operations demo:\")\n    \n    # 1. Create single directory\n    single_dir = \"documents\"\n    if not os.path.exists(single_dir):\n        os.mkdir(single_dir)\n        print(f\"   ✅ Created directory: {single_dir}\")\n    \n    # 2. Create nested directories\n    nested_path = \"projects/python/file_ops\"\n    try:\n        os.makedirs(nested_path, exist_ok=True)\n        print(f\"   ✅ Created nested path: {nested_path}\")\n    except Exception as e:\n        print(f\"   ❌ Error creating path: {e}\")\n    \n    # 3. List directory contents\n    print(f\"\\n📋 Contents of current directory:\")\n    try:\n        items = os.listdir(\".\")\n        files = [item for item in items if os.path.isfile(item)]\n        dirs = [item for item in items if os.path.isdir(item)]\n        \n        print(f\"   📄 Files: {len(files)}\")\n        for file in files[:5]:  # Show first 5 files\n            size = os.path.getsize(file)\n            print(f\"      {file} ({size} bytes)\")\n        \n        print(f\"   📁 Directories: {len(dirs)}\")\n        for directory in dirs[:5]:  # Show first 5 directories\n            print(f\"      {directory}/\")\n            \n    except Exception as e:\n        print(f\"   ❌ Error listing directory: {e}\")\n    \n    # 4. Check directory properties\n    print(f\"\\n🔍 Directory information:\")\n    for dir_name in [single_dir, \"projects\"]:\n        if os.path.exists(dir_name):\n            is_dir = os.path.isdir(dir_name)\n            can_write = os.access(dir_name, os.W_OK)\n            print(f\"   📁 {dir_name}: directory={is_dir}, writable={can_write}\")\n\ndirectory_operations()\n",[3237],{"type":992,"tag":1022,"props":3238,"children":3239},{"__ignoreMap":8},[3240,3251,3258,3266,3273,3289,3309,3316,3324,3341,3357,3365,3406,3413,3421,3438,3450,3476,3517,3540,3581,3588,3596,3628,3639,3663,3706,3747,3755,3797,3834,3859,3917,3924,3965,3999,4040,4047,4066,4106,4113,4121,4153,4184,4196,4213,4238,4313,4320],{"type":992,"tag":1026,"props":3241,"children":3242},{"class":1028,"line":12},[3243,3247],{"type":992,"tag":1026,"props":3244,"children":3245},{"style":1032},[3246],{"type":998,"value":1035},{"type":992,"tag":1026,"props":3248,"children":3249},{"style":1038},[3250],{"type":998,"value":1041},{"type":992,"tag":1026,"props":3252,"children":3253},{"class":1028,"line":27},[3254],{"type":992,"tag":1026,"props":3255,"children":3256},{"emptyLinePlaceholder":13},[3257],{"type":998,"value":1049},{"type":992,"tag":1026,"props":3259,"children":3260},{"class":1028,"line":36},[3261],{"type":992,"tag":1026,"props":3262,"children":3263},{"style":1055},[3264],{"type":998,"value":3265},"# 📁 Directory Management Demo\n",{"type":992,"tag":1026,"props":3267,"children":3268},{"class":1028,"line":45},[3269],{"type":992,"tag":1026,"props":3270,"children":3271},{"emptyLinePlaceholder":13},[3272],{"type":998,"value":1049},{"type":992,"tag":1026,"props":3274,"children":3275},{"class":1028,"line":54},[3276,3280,3285],{"type":992,"tag":1026,"props":3277,"children":3278},{"style":1032},[3279],{"type":998,"value":2378},{"type":992,"tag":1026,"props":3281,"children":3282},{"style":2381},[3283],{"type":998,"value":3284}," directory_operations",{"type":992,"tag":1026,"props":3286,"children":3287},{"style":1038},[3288],{"type":998,"value":2389},{"type":992,"tag":1026,"props":3290,"children":3291},{"class":1028,"line":63},[3292,3296,3300,3305],{"type":992,"tag":1026,"props":3293,"children":3294},{"style":1079},[3295],{"type":998,"value":1560},{"type":992,"tag":1026,"props":3297,"children":3298},{"style":1038},[3299],{"type":998,"value":1087},{"type":992,"tag":1026,"props":3301,"children":3302},{"style":1090},[3303],{"type":998,"value":3304},"\"📁 Directory operations demo:\"",{"type":992,"tag":1026,"props":3306,"children":3307},{"style":1038},[3308],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3310,"children":3311},{"class":1028,"line":72},[3312],{"type":992,"tag":1026,"props":3313,"children":3314},{"style":1038},[3315],{"type":998,"value":1552},{"type":992,"tag":1026,"props":3317,"children":3318},{"class":1028,"line":81},[3319],{"type":992,"tag":1026,"props":3320,"children":3321},{"style":1055},[3322],{"type":998,"value":3323},"    # 1. Create single directory\n",{"type":992,"tag":1026,"props":3325,"children":3326},{"class":1028,"line":91},[3327,3332,3336],{"type":992,"tag":1026,"props":3328,"children":3329},{"style":1038},[3330],{"type":998,"value":3331},"    single_dir ",{"type":992,"tag":1026,"props":3333,"children":3334},{"style":1032},[3335],{"type":998,"value":1111},{"type":992,"tag":1026,"props":3337,"children":3338},{"style":1090},[3339],{"type":998,"value":3340}," \"documents\"\n",{"type":992,"tag":1026,"props":3342,"children":3343},{"class":1028,"line":100},[3344,3348,3352],{"type":992,"tag":1026,"props":3345,"children":3346},{"style":1032},[3347],{"type":998,"value":1183},{"type":992,"tag":1026,"props":3349,"children":3350},{"style":1032},[3351],{"type":998,"value":1940},{"type":992,"tag":1026,"props":3353,"children":3354},{"style":1038},[3355],{"type":998,"value":3356}," os.path.exists(single_dir):\n",{"type":992,"tag":1026,"props":3358,"children":3359},{"class":1028,"line":109},[3360],{"type":992,"tag":1026,"props":3361,"children":3362},{"style":1038},[3363],{"type":998,"value":3364},"        os.mkdir(single_dir)\n",{"type":992,"tag":1026,"props":3366,"children":3367},{"class":1028,"line":118},[3368,3372,3376,3380,3385,3389,3394,3398,3402],{"type":992,"tag":1026,"props":3369,"children":3370},{"style":1079},[3371],{"type":998,"value":1196},{"type":992,"tag":1026,"props":3373,"children":3374},{"style":1038},[3375],{"type":998,"value":1087},{"type":992,"tag":1026,"props":3377,"children":3378},{"style":1032},[3379],{"type":998,"value":1205},{"type":992,"tag":1026,"props":3381,"children":3382},{"style":1090},[3383],{"type":998,"value":3384},"\"   ✅ Created directory: ",{"type":992,"tag":1026,"props":3386,"children":3387},{"style":1079},[3388],{"type":998,"value":1215},{"type":992,"tag":1026,"props":3390,"children":3391},{"style":1038},[3392],{"type":998,"value":3393},"single_dir",{"type":992,"tag":1026,"props":3395,"children":3396},{"style":1079},[3397],{"type":998,"value":1225},{"type":992,"tag":1026,"props":3399,"children":3400},{"style":1090},[3401],{"type":998,"value":1382},{"type":992,"tag":1026,"props":3403,"children":3404},{"style":1038},[3405],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3407,"children":3408},{"class":1028,"line":127},[3409],{"type":992,"tag":1026,"props":3410,"children":3411},{"style":1038},[3412],{"type":998,"value":1552},{"type":992,"tag":1026,"props":3414,"children":3415},{"class":1028,"line":136},[3416],{"type":992,"tag":1026,"props":3417,"children":3418},{"style":1055},[3419],{"type":998,"value":3420},"    # 2. Create nested directories\n",{"type":992,"tag":1026,"props":3422,"children":3423},{"class":1028,"line":146},[3424,3429,3433],{"type":992,"tag":1026,"props":3425,"children":3426},{"style":1038},[3427],{"type":998,"value":3428},"    nested_path ",{"type":992,"tag":1026,"props":3430,"children":3431},{"style":1032},[3432],{"type":998,"value":1111},{"type":992,"tag":1026,"props":3434,"children":3435},{"style":1090},[3436],{"type":998,"value":3437}," \"projects/python/file_ops\"\n",{"type":992,"tag":1026,"props":3439,"children":3440},{"class":1028,"line":155},[3441,3446],{"type":992,"tag":1026,"props":3442,"children":3443},{"style":1032},[3444],{"type":998,"value":3445},"    try",{"type":992,"tag":1026,"props":3447,"children":3448},{"style":1038},[3449],{"type":998,"value":1247},{"type":992,"tag":1026,"props":3451,"children":3452},{"class":1028,"line":164},[3453,3458,3463,3467,3472],{"type":992,"tag":1026,"props":3454,"children":3455},{"style":1038},[3456],{"type":998,"value":3457},"        os.makedirs(nested_path, ",{"type":992,"tag":1026,"props":3459,"children":3460},{"style":1347},[3461],{"type":998,"value":3462},"exist_ok",{"type":992,"tag":1026,"props":3464,"children":3465},{"style":1032},[3466],{"type":998,"value":1111},{"type":992,"tag":1026,"props":3468,"children":3469},{"style":1079},[3470],{"type":998,"value":3471},"True",{"type":992,"tag":1026,"props":3473,"children":3474},{"style":1038},[3475],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3477,"children":3478},{"class":1028,"line":173},[3479,3483,3487,3491,3496,3500,3505,3509,3513],{"type":992,"tag":1026,"props":3480,"children":3481},{"style":1079},[3482],{"type":998,"value":1196},{"type":992,"tag":1026,"props":3484,"children":3485},{"style":1038},[3486],{"type":998,"value":1087},{"type":992,"tag":1026,"props":3488,"children":3489},{"style":1032},[3490],{"type":998,"value":1205},{"type":992,"tag":1026,"props":3492,"children":3493},{"style":1090},[3494],{"type":998,"value":3495},"\"   ✅ Created nested path: ",{"type":992,"tag":1026,"props":3497,"children":3498},{"style":1079},[3499],{"type":998,"value":1215},{"type":992,"tag":1026,"props":3501,"children":3502},{"style":1038},[3503],{"type":998,"value":3504},"nested_path",{"type":992,"tag":1026,"props":3506,"children":3507},{"style":1079},[3508],{"type":998,"value":1225},{"type":992,"tag":1026,"props":3510,"children":3511},{"style":1090},[3512],{"type":998,"value":1382},{"type":992,"tag":1026,"props":3514,"children":3515},{"style":1038},[3516],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3518,"children":3519},{"class":1028,"line":182},[3520,3525,3530,3535],{"type":992,"tag":1026,"props":3521,"children":3522},{"style":1032},[3523],{"type":998,"value":3524},"    except",{"type":992,"tag":1026,"props":3526,"children":3527},{"style":1079},[3528],{"type":998,"value":3529}," Exception",{"type":992,"tag":1026,"props":3531,"children":3532},{"style":1032},[3533],{"type":998,"value":3534}," as",{"type":992,"tag":1026,"props":3536,"children":3537},{"style":1038},[3538],{"type":998,"value":3539}," e:\n",{"type":992,"tag":1026,"props":3541,"children":3542},{"class":1028,"line":191},[3543,3547,3551,3555,3560,3564,3569,3573,3577],{"type":992,"tag":1026,"props":3544,"children":3545},{"style":1079},[3546],{"type":998,"value":1196},{"type":992,"tag":1026,"props":3548,"children":3549},{"style":1038},[3550],{"type":998,"value":1087},{"type":992,"tag":1026,"props":3552,"children":3553},{"style":1032},[3554],{"type":998,"value":1205},{"type":992,"tag":1026,"props":3556,"children":3557},{"style":1090},[3558],{"type":998,"value":3559},"\"   ❌ Error creating path: ",{"type":992,"tag":1026,"props":3561,"children":3562},{"style":1079},[3563],{"type":998,"value":1215},{"type":992,"tag":1026,"props":3565,"children":3566},{"style":1038},[3567],{"type":998,"value":3568},"e",{"type":992,"tag":1026,"props":3570,"children":3571},{"style":1079},[3572],{"type":998,"value":1225},{"type":992,"tag":1026,"props":3574,"children":3575},{"style":1090},[3576],{"type":998,"value":1382},{"type":992,"tag":1026,"props":3578,"children":3579},{"style":1038},[3580],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3582,"children":3583},{"class":1028,"line":201},[3584],{"type":992,"tag":1026,"props":3585,"children":3586},{"style":1038},[3587],{"type":998,"value":1552},{"type":992,"tag":1026,"props":3589,"children":3590},{"class":1028,"line":210},[3591],{"type":992,"tag":1026,"props":3592,"children":3593},{"style":1055},[3594],{"type":998,"value":3595},"    # 3. List directory contents\n",{"type":992,"tag":1026,"props":3597,"children":3598},{"class":1028,"line":219},[3599,3603,3607,3611,3615,3619,3624],{"type":992,"tag":1026,"props":3600,"children":3601},{"style":1079},[3602],{"type":998,"value":1560},{"type":992,"tag":1026,"props":3604,"children":3605},{"style":1038},[3606],{"type":998,"value":1087},{"type":992,"tag":1026,"props":3608,"children":3609},{"style":1032},[3610],{"type":998,"value":1205},{"type":992,"tag":1026,"props":3612,"children":3613},{"style":1090},[3614],{"type":998,"value":1382},{"type":992,"tag":1026,"props":3616,"children":3617},{"style":1079},[3618],{"type":998,"value":1377},{"type":992,"tag":1026,"props":3620,"children":3621},{"style":1090},[3622],{"type":998,"value":3623},"📋 Contents of current directory:\"",{"type":992,"tag":1026,"props":3625,"children":3626},{"style":1038},[3627],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3629,"children":3630},{"class":1028,"line":228},[3631,3635],{"type":992,"tag":1026,"props":3632,"children":3633},{"style":1032},[3634],{"type":998,"value":3445},{"type":992,"tag":1026,"props":3636,"children":3637},{"style":1038},[3638],{"type":998,"value":1247},{"type":992,"tag":1026,"props":3640,"children":3641},{"class":1028,"line":238},[3642,3647,3651,3655,3659],{"type":992,"tag":1026,"props":3643,"children":3644},{"style":1038},[3645],{"type":998,"value":3646},"        items ",{"type":992,"tag":1026,"props":3648,"children":3649},{"style":1032},[3650],{"type":998,"value":1111},{"type":992,"tag":1026,"props":3652,"children":3653},{"style":1038},[3654],{"type":998,"value":1781},{"type":992,"tag":1026,"props":3656,"children":3657},{"style":1090},[3658],{"type":998,"value":1786},{"type":992,"tag":1026,"props":3660,"children":3661},{"style":1038},[3662],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3664,"children":3665},{"class":1028,"line":247},[3666,3671,3675,3680,3684,3688,3692,3697,3701],{"type":992,"tag":1026,"props":3667,"children":3668},{"style":1038},[3669],{"type":998,"value":3670},"        files ",{"type":992,"tag":1026,"props":3672,"children":3673},{"style":1032},[3674],{"type":998,"value":1111},{"type":992,"tag":1026,"props":3676,"children":3677},{"style":1038},[3678],{"type":998,"value":3679}," [item ",{"type":992,"tag":1026,"props":3681,"children":3682},{"style":1032},[3683],{"type":998,"value":1160},{"type":992,"tag":1026,"props":3685,"children":3686},{"style":1038},[3687],{"type":998,"value":1772},{"type":992,"tag":1026,"props":3689,"children":3690},{"style":1032},[3691],{"type":998,"value":1170},{"type":992,"tag":1026,"props":3693,"children":3694},{"style":1038},[3695],{"type":998,"value":3696}," items ",{"type":992,"tag":1026,"props":3698,"children":3699},{"style":1032},[3700],{"type":998,"value":1481},{"type":992,"tag":1026,"props":3702,"children":3703},{"style":1038},[3704],{"type":998,"value":3705}," os.path.isfile(item)]\n",{"type":992,"tag":1026,"props":3707,"children":3708},{"class":1028,"line":256},[3709,3714,3718,3722,3726,3730,3734,3738,3742],{"type":992,"tag":1026,"props":3710,"children":3711},{"style":1038},[3712],{"type":998,"value":3713},"        dirs ",{"type":992,"tag":1026,"props":3715,"children":3716},{"style":1032},[3717],{"type":998,"value":1111},{"type":992,"tag":1026,"props":3719,"children":3720},{"style":1038},[3721],{"type":998,"value":3679},{"type":992,"tag":1026,"props":3723,"children":3724},{"style":1032},[3725],{"type":998,"value":1160},{"type":992,"tag":1026,"props":3727,"children":3728},{"style":1038},[3729],{"type":998,"value":1772},{"type":992,"tag":1026,"props":3731,"children":3732},{"style":1032},[3733],{"type":998,"value":1170},{"type":992,"tag":1026,"props":3735,"children":3736},{"style":1038},[3737],{"type":998,"value":3696},{"type":992,"tag":1026,"props":3739,"children":3740},{"style":1032},[3741],{"type":998,"value":1481},{"type":992,"tag":1026,"props":3743,"children":3744},{"style":1038},[3745],{"type":998,"value":3746}," os.path.isdir(item)]\n",{"type":992,"tag":1026,"props":3748,"children":3749},{"class":1028,"line":265},[3750],{"type":992,"tag":1026,"props":3751,"children":3752},{"style":1038},[3753],{"type":998,"value":3754},"        \n",{"type":992,"tag":1026,"props":3756,"children":3757},{"class":1028,"line":274},[3758,3762,3766,3770,3775,3780,3785,3789,3793],{"type":992,"tag":1026,"props":3759,"children":3760},{"style":1079},[3761],{"type":998,"value":1196},{"type":992,"tag":1026,"props":3763,"children":3764},{"style":1038},[3765],{"type":998,"value":1087},{"type":992,"tag":1026,"props":3767,"children":3768},{"style":1032},[3769],{"type":998,"value":1205},{"type":992,"tag":1026,"props":3771,"children":3772},{"style":1090},[3773],{"type":998,"value":3774},"\"   📄 Files: ",{"type":992,"tag":1026,"props":3776,"children":3777},{"style":1079},[3778],{"type":998,"value":3779},"{len",{"type":992,"tag":1026,"props":3781,"children":3782},{"style":1038},[3783],{"type":998,"value":3784},"(files)",{"type":992,"tag":1026,"props":3786,"children":3787},{"style":1079},[3788],{"type":998,"value":1225},{"type":992,"tag":1026,"props":3790,"children":3791},{"style":1090},[3792],{"type":998,"value":1382},{"type":992,"tag":1026,"props":3794,"children":3795},{"style":1038},[3796],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3798,"children":3799},{"class":1028,"line":284},[3800,3805,3809,3814,3819,3824,3829],{"type":992,"tag":1026,"props":3801,"children":3802},{"style":1032},[3803],{"type":998,"value":3804},"        for",{"type":992,"tag":1026,"props":3806,"children":3807},{"style":1347},[3808],{"type":998,"value":1350},{"type":992,"tag":1026,"props":3810,"children":3811},{"style":1032},[3812],{"type":998,"value":3813}," in",{"type":992,"tag":1026,"props":3815,"children":3816},{"style":1038},[3817],{"type":998,"value":3818}," files[:",{"type":992,"tag":1026,"props":3820,"children":3821},{"style":1079},[3822],{"type":998,"value":3823},"5",{"type":992,"tag":1026,"props":3825,"children":3826},{"style":1038},[3827],{"type":998,"value":3828},"]:  ",{"type":992,"tag":1026,"props":3830,"children":3831},{"style":1055},[3832],{"type":998,"value":3833},"# Show first 5 files\n",{"type":992,"tag":1026,"props":3835,"children":3836},{"class":1028,"line":293},[3837,3841,3845,3850,3855],{"type":992,"tag":1026,"props":3838,"children":3839},{"style":1038},[3840],{"type":998,"value":2890},{"type":992,"tag":1026,"props":3842,"children":3843},{"style":1032},[3844],{"type":998,"value":1111},{"type":992,"tag":1026,"props":3846,"children":3847},{"style":1038},[3848],{"type":998,"value":3849}," os.path.getsize(",{"type":992,"tag":1026,"props":3851,"children":3852},{"style":1347},[3853],{"type":998,"value":3854},"file",{"type":992,"tag":1026,"props":3856,"children":3857},{"style":1038},[3858],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3860,"children":3861},{"class":1028,"line":302},[3862,3866,3870,3874,3879,3883,3887,3891,3896,3900,3904,3908,3913],{"type":992,"tag":1026,"props":3863,"children":3864},{"style":1079},[3865],{"type":998,"value":2785},{"type":992,"tag":1026,"props":3867,"children":3868},{"style":1038},[3869],{"type":998,"value":1087},{"type":992,"tag":1026,"props":3871,"children":3872},{"style":1032},[3873],{"type":998,"value":1205},{"type":992,"tag":1026,"props":3875,"children":3876},{"style":1090},[3877],{"type":998,"value":3878},"\"      ",{"type":992,"tag":1026,"props":3880,"children":3881},{"style":1079},[3882],{"type":998,"value":1215},{"type":992,"tag":1026,"props":3884,"children":3885},{"style":1347},[3886],{"type":998,"value":3854},{"type":992,"tag":1026,"props":3888,"children":3889},{"style":1079},[3890],{"type":998,"value":1225},{"type":992,"tag":1026,"props":3892,"children":3893},{"style":1090},[3894],{"type":998,"value":3895}," (",{"type":992,"tag":1026,"props":3897,"children":3898},{"style":1079},[3899],{"type":998,"value":1215},{"type":992,"tag":1026,"props":3901,"children":3902},{"style":1038},[3903],{"type":998,"value":1622},{"type":992,"tag":1026,"props":3905,"children":3906},{"style":1079},[3907],{"type":998,"value":1225},{"type":992,"tag":1026,"props":3909,"children":3910},{"style":1090},[3911],{"type":998,"value":3912}," bytes)\"",{"type":992,"tag":1026,"props":3914,"children":3915},{"style":1038},[3916],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3918,"children":3919},{"class":1028,"line":311},[3920],{"type":992,"tag":1026,"props":3921,"children":3922},{"style":1038},[3923],{"type":998,"value":3754},{"type":992,"tag":1026,"props":3925,"children":3926},{"class":1028,"line":320},[3927,3931,3935,3939,3944,3948,3953,3957,3961],{"type":992,"tag":1026,"props":3928,"children":3929},{"style":1079},[3930],{"type":998,"value":1196},{"type":992,"tag":1026,"props":3932,"children":3933},{"style":1038},[3934],{"type":998,"value":1087},{"type":992,"tag":1026,"props":3936,"children":3937},{"style":1032},[3938],{"type":998,"value":1205},{"type":992,"tag":1026,"props":3940,"children":3941},{"style":1090},[3942],{"type":998,"value":3943},"\"   📁 Directories: ",{"type":992,"tag":1026,"props":3945,"children":3946},{"style":1079},[3947],{"type":998,"value":3779},{"type":992,"tag":1026,"props":3949,"children":3950},{"style":1038},[3951],{"type":998,"value":3952},"(dirs)",{"type":992,"tag":1026,"props":3954,"children":3955},{"style":1079},[3956],{"type":998,"value":1225},{"type":992,"tag":1026,"props":3958,"children":3959},{"style":1090},[3960],{"type":998,"value":1382},{"type":992,"tag":1026,"props":3962,"children":3963},{"style":1038},[3964],{"type":998,"value":1098},{"type":992,"tag":1026,"props":3966,"children":3967},{"class":1028,"line":329},[3968,3972,3977,3981,3986,3990,3994],{"type":992,"tag":1026,"props":3969,"children":3970},{"style":1032},[3971],{"type":998,"value":3804},{"type":992,"tag":1026,"props":3973,"children":3974},{"style":1038},[3975],{"type":998,"value":3976}," directory ",{"type":992,"tag":1026,"props":3978,"children":3979},{"style":1032},[3980],{"type":998,"value":1170},{"type":992,"tag":1026,"props":3982,"children":3983},{"style":1038},[3984],{"type":998,"value":3985}," dirs[:",{"type":992,"tag":1026,"props":3987,"children":3988},{"style":1079},[3989],{"type":998,"value":3823},{"type":992,"tag":1026,"props":3991,"children":3992},{"style":1038},[3993],{"type":998,"value":3828},{"type":992,"tag":1026,"props":3995,"children":3996},{"style":1055},[3997],{"type":998,"value":3998},"# Show first 5 directories\n",{"type":992,"tag":1026,"props":4000,"children":4001},{"class":1028,"line":338},[4002,4006,4010,4014,4018,4022,4027,4031,4036],{"type":992,"tag":1026,"props":4003,"children":4004},{"style":1079},[4005],{"type":998,"value":2785},{"type":992,"tag":1026,"props":4007,"children":4008},{"style":1038},[4009],{"type":998,"value":1087},{"type":992,"tag":1026,"props":4011,"children":4012},{"style":1032},[4013],{"type":998,"value":1205},{"type":992,"tag":1026,"props":4015,"children":4016},{"style":1090},[4017],{"type":998,"value":3878},{"type":992,"tag":1026,"props":4019,"children":4020},{"style":1079},[4021],{"type":998,"value":1215},{"type":992,"tag":1026,"props":4023,"children":4024},{"style":1038},[4025],{"type":998,"value":4026},"directory",{"type":992,"tag":1026,"props":4028,"children":4029},{"style":1079},[4030],{"type":998,"value":1225},{"type":992,"tag":1026,"props":4032,"children":4033},{"style":1090},[4034],{"type":998,"value":4035},"/\"",{"type":992,"tag":1026,"props":4037,"children":4038},{"style":1038},[4039],{"type":998,"value":1098},{"type":992,"tag":1026,"props":4041,"children":4042},{"class":1028,"line":347},[4043],{"type":992,"tag":1026,"props":4044,"children":4045},{"style":1038},[4046],{"type":998,"value":2777},{"type":992,"tag":1026,"props":4048,"children":4049},{"class":1028,"line":356},[4050,4054,4058,4062],{"type":992,"tag":1026,"props":4051,"children":4052},{"style":1032},[4053],{"type":998,"value":3524},{"type":992,"tag":1026,"props":4055,"children":4056},{"style":1079},[4057],{"type":998,"value":3529},{"type":992,"tag":1026,"props":4059,"children":4060},{"style":1032},[4061],{"type":998,"value":3534},{"type":992,"tag":1026,"props":4063,"children":4064},{"style":1038},[4065],{"type":998,"value":3539},{"type":992,"tag":1026,"props":4067,"children":4068},{"class":1028,"line":365},[4069,4073,4077,4081,4086,4090,4094,4098,4102],{"type":992,"tag":1026,"props":4070,"children":4071},{"style":1079},[4072],{"type":998,"value":1196},{"type":992,"tag":1026,"props":4074,"children":4075},{"style":1038},[4076],{"type":998,"value":1087},{"type":992,"tag":1026,"props":4078,"children":4079},{"style":1032},[4080],{"type":998,"value":1205},{"type":992,"tag":1026,"props":4082,"children":4083},{"style":1090},[4084],{"type":998,"value":4085},"\"   ❌ Error listing directory: ",{"type":992,"tag":1026,"props":4087,"children":4088},{"style":1079},[4089],{"type":998,"value":1215},{"type":992,"tag":1026,"props":4091,"children":4092},{"style":1038},[4093],{"type":998,"value":3568},{"type":992,"tag":1026,"props":4095,"children":4096},{"style":1079},[4097],{"type":998,"value":1225},{"type":992,"tag":1026,"props":4099,"children":4100},{"style":1090},[4101],{"type":998,"value":1382},{"type":992,"tag":1026,"props":4103,"children":4104},{"style":1038},[4105],{"type":998,"value":1098},{"type":992,"tag":1026,"props":4107,"children":4108},{"class":1028,"line":374},[4109],{"type":992,"tag":1026,"props":4110,"children":4111},{"style":1038},[4112],{"type":998,"value":1552},{"type":992,"tag":1026,"props":4114,"children":4115},{"class":1028,"line":384},[4116],{"type":992,"tag":1026,"props":4117,"children":4118},{"style":1055},[4119],{"type":998,"value":4120},"    # 4. Check directory properties\n",{"type":992,"tag":1026,"props":4122,"children":4123},{"class":1028,"line":393},[4124,4128,4132,4136,4140,4144,4149],{"type":992,"tag":1026,"props":4125,"children":4126},{"style":1079},[4127],{"type":998,"value":1560},{"type":992,"tag":1026,"props":4129,"children":4130},{"style":1038},[4131],{"type":998,"value":1087},{"type":992,"tag":1026,"props":4133,"children":4134},{"style":1032},[4135],{"type":998,"value":1205},{"type":992,"tag":1026,"props":4137,"children":4138},{"style":1090},[4139],{"type":998,"value":1382},{"type":992,"tag":1026,"props":4141,"children":4142},{"style":1079},[4143],{"type":998,"value":1377},{"type":992,"tag":1026,"props":4145,"children":4146},{"style":1090},[4147],{"type":998,"value":4148},"🔍 Directory information:\"",{"type":992,"tag":1026,"props":4150,"children":4151},{"style":1038},[4152],{"type":998,"value":1098},{"type":992,"tag":1026,"props":4154,"children":4155},{"class":1028,"line":402},[4156,4160,4165,4169,4174,4179],{"type":992,"tag":1026,"props":4157,"children":4158},{"style":1032},[4159],{"type":998,"value":2537},{"type":992,"tag":1026,"props":4161,"children":4162},{"style":1038},[4163],{"type":998,"value":4164}," dir_name ",{"type":992,"tag":1026,"props":4166,"children":4167},{"style":1032},[4168],{"type":998,"value":1170},{"type":992,"tag":1026,"props":4170,"children":4171},{"style":1038},[4172],{"type":998,"value":4173}," [single_dir, ",{"type":992,"tag":1026,"props":4175,"children":4176},{"style":1090},[4177],{"type":998,"value":4178},"\"projects\"",{"type":992,"tag":1026,"props":4180,"children":4181},{"style":1038},[4182],{"type":998,"value":4183},"]:\n",{"type":992,"tag":1026,"props":4185,"children":4186},{"class":1028,"line":411},[4187,4191],{"type":992,"tag":1026,"props":4188,"children":4189},{"style":1032},[4190],{"type":998,"value":2740},{"type":992,"tag":1026,"props":4192,"children":4193},{"style":1038},[4194],{"type":998,"value":4195}," os.path.exists(dir_name):\n",{"type":992,"tag":1026,"props":4197,"children":4198},{"class":1028,"line":420},[4199,4204,4208],{"type":992,"tag":1026,"props":4200,"children":4201},{"style":1038},[4202],{"type":998,"value":4203},"            is_dir ",{"type":992,"tag":1026,"props":4205,"children":4206},{"style":1032},[4207],{"type":998,"value":1111},{"type":992,"tag":1026,"props":4209,"children":4210},{"style":1038},[4211],{"type":998,"value":4212}," os.path.isdir(dir_name)\n",{"type":992,"tag":1026,"props":4214,"children":4215},{"class":1028,"line":429},[4216,4221,4225,4230,4234],{"type":992,"tag":1026,"props":4217,"children":4218},{"style":1038},[4219],{"type":998,"value":4220},"            can_write ",{"type":992,"tag":1026,"props":4222,"children":4223},{"style":1032},[4224],{"type":998,"value":1111},{"type":992,"tag":1026,"props":4226,"children":4227},{"style":1038},[4228],{"type":998,"value":4229}," os.access(dir_name, os.",{"type":992,"tag":1026,"props":4231,"children":4232},{"style":1079},[4233],{"type":998,"value":3117},{"type":992,"tag":1026,"props":4235,"children":4236},{"style":1038},[4237],{"type":998,"value":1098},{"type":992,"tag":1026,"props":4239,"children":4240},{"class":1028,"line":438},[4241,4245,4249,4253,4257,4261,4266,4270,4275,4279,4283,4287,4292,4296,4301,4305,4309],{"type":992,"tag":1026,"props":4242,"children":4243},{"style":1079},[4244],{"type":998,"value":2785},{"type":992,"tag":1026,"props":4246,"children":4247},{"style":1038},[4248],{"type":998,"value":1087},{"type":992,"tag":1026,"props":4250,"children":4251},{"style":1032},[4252],{"type":998,"value":1205},{"type":992,"tag":1026,"props":4254,"children":4255},{"style":1090},[4256],{"type":998,"value":1876},{"type":992,"tag":1026,"props":4258,"children":4259},{"style":1079},[4260],{"type":998,"value":1215},{"type":992,"tag":1026,"props":4262,"children":4263},{"style":1038},[4264],{"type":998,"value":4265},"dir_name",{"type":992,"tag":1026,"props":4267,"children":4268},{"style":1079},[4269],{"type":998,"value":1225},{"type":992,"tag":1026,"props":4271,"children":4272},{"style":1090},[4273],{"type":998,"value":4274},": directory=",{"type":992,"tag":1026,"props":4276,"children":4277},{"style":1079},[4278],{"type":998,"value":1215},{"type":992,"tag":1026,"props":4280,"children":4281},{"style":1038},[4282],{"type":998,"value":1705},{"type":992,"tag":1026,"props":4284,"children":4285},{"style":1079},[4286],{"type":998,"value":1225},{"type":992,"tag":1026,"props":4288,"children":4289},{"style":1090},[4290],{"type":998,"value":4291},", writable=",{"type":992,"tag":1026,"props":4293,"children":4294},{"style":1079},[4295],{"type":998,"value":1215},{"type":992,"tag":1026,"props":4297,"children":4298},{"style":1038},[4299],{"type":998,"value":4300},"can_write",{"type":992,"tag":1026,"props":4302,"children":4303},{"style":1079},[4304],{"type":998,"value":1225},{"type":992,"tag":1026,"props":4306,"children":4307},{"style":1090},[4308],{"type":998,"value":1382},{"type":992,"tag":1026,"props":4310,"children":4311},{"style":1038},[4312],{"type":998,"value":1098},{"type":992,"tag":1026,"props":4314,"children":4315},{"class":1028,"line":447},[4316],{"type":992,"tag":1026,"props":4317,"children":4318},{"emptyLinePlaceholder":13},[4319],{"type":998,"value":1049},{"type":992,"tag":1026,"props":4321,"children":4322},{"class":1028,"line":457},[4323],{"type":992,"tag":1026,"props":4324,"children":4325},{"style":1038},[4326],{"type":998,"value":4327},"directory_operations()\n",{"type":992,"tag":2305,"props":4329,"children":4331},{"id":4330},"file-organization-and-cleanup",[4332],{"type":998,"value":4333},"🔍 File Organization and Cleanup",{"type":992,"tag":1001,"props":4335,"children":4336},{},[4337],{"type":998,"value":4338},"Organizing files automatically helps maintain a clean and efficient file system.",{"type":992,"tag":1012,"props":4340,"children":4341},{},[4342],{"type":992,"tag":1016,"props":4343,"children":4345},{"className":1018,"code":4344,"language":6,"meta":8,"style":8},"import os\nimport time\n\n# 🗂️ File Organization Demo\n\ndef organize_files():\n    print(\"🗂️ File organization demo:\")\n    \n    # Create sample files for organization\n    sample_files = [\n        \"report.pdf\", \"data.csv\", \"script.py\", \n        \"image.jpg\", \"document.txt\", \"backup.zip\"\n    ]\n    \n    print(\"📄 Creating sample files:\")\n    for filename in sample_files:\n        with open(filename, \"w\") as file:\n            file.write(f\"Sample content for {filename}\")\n        print(f\"   ✅ Created {filename}\")\n    \n    # Define organization categories\n    categories = {\n        \"Documents\": [\".pdf\", \".txt\", \".doc\"],\n        \"Data\": [\".csv\", \".json\", \".xml\"],\n        \"Scripts\": [\".py\", \".js\", \".html\"],\n        \"Images\": [\".jpg\", \".png\", \".gif\"],\n        \"Archives\": [\".zip\", \".tar\", \".gz\"]\n    }\n    \n    print(f\"\\n📂 Organizing files by type:\")\n    \n    # Create category directories\n    for category in categories.keys():\n        if not os.path.exists(category):\n            os.mkdir(category)\n            print(f\"   📁 Created {category} folder\")\n    \n    # Organize files\n    current_files = [f for f in os.listdir(\".\") if os.path.isfile(f)]\n    \n    for filename in current_files:\n        # Get file extension\n        _, ext = os.path.splitext(filename)\n        ext = ext.lower()\n        \n        # Find matching category\n        moved = False\n        for category, extensions in categories.items():\n            if ext in extensions:\n                try:\n                    # Move file to category folder\n                    old_path = filename\n                    new_path = os.path.join(category, filename)\n                    os.rename(old_path, new_path)\n                    print(f\"   📦 Moved {filename} to {category}/\")\n                    moved = True\n                    break\n                except Exception as e:\n                    print(f\"   ❌ Error moving {filename}: {e}\")\n        \n        if not moved and filename in sample_files:\n            print(f\"   ⚠️ No category for {filename}\")\n\norganize_files()\n",[4346],{"type":992,"tag":1022,"props":4347,"children":4348},{"__ignoreMap":8},[4349,4360,4371,4378,4386,4393,4409,4429,4436,4444,4461,4491,4517,4525,4532,4552,4572,4607,4647,4686,4693,4701,4717,4758,4797,4836,4875,4914,4921,4928,4960,4967,4975,4996,5012,5020,5062,5069,5077,5128,5135,5155,5163,5180,5197,5204,5212,5229,5250,5271,5283,5291,5308,5325,5333,5391,5408,5416,5436,5492,5499,5532,5572,5579],{"type":992,"tag":1026,"props":4350,"children":4351},{"class":1028,"line":12},[4352,4356],{"type":992,"tag":1026,"props":4353,"children":4354},{"style":1032},[4355],{"type":998,"value":1035},{"type":992,"tag":1026,"props":4357,"children":4358},{"style":1038},[4359],{"type":998,"value":1041},{"type":992,"tag":1026,"props":4361,"children":4362},{"class":1028,"line":27},[4363,4367],{"type":992,"tag":1026,"props":4364,"children":4365},{"style":1032},[4366],{"type":998,"value":1035},{"type":992,"tag":1026,"props":4368,"children":4369},{"style":1038},[4370],{"type":998,"value":2348},{"type":992,"tag":1026,"props":4372,"children":4373},{"class":1028,"line":36},[4374],{"type":992,"tag":1026,"props":4375,"children":4376},{"emptyLinePlaceholder":13},[4377],{"type":998,"value":1049},{"type":992,"tag":1026,"props":4379,"children":4380},{"class":1028,"line":45},[4381],{"type":992,"tag":1026,"props":4382,"children":4383},{"style":1055},[4384],{"type":998,"value":4385},"# 🗂️ File Organization Demo\n",{"type":992,"tag":1026,"props":4387,"children":4388},{"class":1028,"line":54},[4389],{"type":992,"tag":1026,"props":4390,"children":4391},{"emptyLinePlaceholder":13},[4392],{"type":998,"value":1049},{"type":992,"tag":1026,"props":4394,"children":4395},{"class":1028,"line":63},[4396,4400,4405],{"type":992,"tag":1026,"props":4397,"children":4398},{"style":1032},[4399],{"type":998,"value":2378},{"type":992,"tag":1026,"props":4401,"children":4402},{"style":2381},[4403],{"type":998,"value":4404}," organize_files",{"type":992,"tag":1026,"props":4406,"children":4407},{"style":1038},[4408],{"type":998,"value":2389},{"type":992,"tag":1026,"props":4410,"children":4411},{"class":1028,"line":72},[4412,4416,4420,4425],{"type":992,"tag":1026,"props":4413,"children":4414},{"style":1079},[4415],{"type":998,"value":1560},{"type":992,"tag":1026,"props":4417,"children":4418},{"style":1038},[4419],{"type":998,"value":1087},{"type":992,"tag":1026,"props":4421,"children":4422},{"style":1090},[4423],{"type":998,"value":4424},"\"🗂️ File organization demo:\"",{"type":992,"tag":1026,"props":4426,"children":4427},{"style":1038},[4428],{"type":998,"value":1098},{"type":992,"tag":1026,"props":4430,"children":4431},{"class":1028,"line":81},[4432],{"type":992,"tag":1026,"props":4433,"children":4434},{"style":1038},[4435],{"type":998,"value":1552},{"type":992,"tag":1026,"props":4437,"children":4438},{"class":1028,"line":91},[4439],{"type":992,"tag":1026,"props":4440,"children":4441},{"style":1055},[4442],{"type":998,"value":4443},"    # Create sample files for organization\n",{"type":992,"tag":1026,"props":4445,"children":4446},{"class":1028,"line":100},[4447,4452,4456],{"type":992,"tag":1026,"props":4448,"children":4449},{"style":1038},[4450],{"type":998,"value":4451},"    sample_files ",{"type":992,"tag":1026,"props":4453,"children":4454},{"style":1032},[4455],{"type":998,"value":1111},{"type":992,"tag":1026,"props":4457,"children":4458},{"style":1038},[4459],{"type":998,"value":4460}," [\n",{"type":992,"tag":1026,"props":4462,"children":4463},{"class":1028,"line":109},[4464,4469,4473,4477,4481,4486],{"type":992,"tag":1026,"props":4465,"children":4466},{"style":1090},[4467],{"type":998,"value":4468},"        \"report.pdf\"",{"type":992,"tag":1026,"props":4470,"children":4471},{"style":1038},[4472],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4474,"children":4475},{"style":1090},[4476],{"type":998,"value":1140},{"type":992,"tag":1026,"props":4478,"children":4479},{"style":1038},[4480],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4482,"children":4483},{"style":1090},[4484],{"type":998,"value":4485},"\"script.py\"",{"type":992,"tag":1026,"props":4487,"children":4488},{"style":1038},[4489],{"type":998,"value":4490},", \n",{"type":992,"tag":1026,"props":4492,"children":4493},{"class":1028,"line":118},[4494,4499,4503,4508,4512],{"type":992,"tag":1026,"props":4495,"children":4496},{"style":1090},[4497],{"type":998,"value":4498},"        \"image.jpg\"",{"type":992,"tag":1026,"props":4500,"children":4501},{"style":1038},[4502],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4504,"children":4505},{"style":1090},[4506],{"type":998,"value":4507},"\"document.txt\"",{"type":992,"tag":1026,"props":4509,"children":4510},{"style":1038},[4511],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4513,"children":4514},{"style":1090},[4515],{"type":998,"value":4516},"\"backup.zip\"\n",{"type":992,"tag":1026,"props":4518,"children":4519},{"class":1028,"line":127},[4520],{"type":992,"tag":1026,"props":4521,"children":4522},{"style":1038},[4523],{"type":998,"value":4524},"    ]\n",{"type":992,"tag":1026,"props":4526,"children":4527},{"class":1028,"line":136},[4528],{"type":992,"tag":1026,"props":4529,"children":4530},{"style":1038},[4531],{"type":998,"value":1552},{"type":992,"tag":1026,"props":4533,"children":4534},{"class":1028,"line":146},[4535,4539,4543,4548],{"type":992,"tag":1026,"props":4536,"children":4537},{"style":1079},[4538],{"type":998,"value":1560},{"type":992,"tag":1026,"props":4540,"children":4541},{"style":1038},[4542],{"type":998,"value":1087},{"type":992,"tag":1026,"props":4544,"children":4545},{"style":1090},[4546],{"type":998,"value":4547},"\"📄 Creating sample files:\"",{"type":992,"tag":1026,"props":4549,"children":4550},{"style":1038},[4551],{"type":998,"value":1098},{"type":992,"tag":1026,"props":4553,"children":4554},{"class":1028,"line":155},[4555,4559,4563,4567],{"type":992,"tag":1026,"props":4556,"children":4557},{"style":1032},[4558],{"type":998,"value":2537},{"type":992,"tag":1026,"props":4560,"children":4561},{"style":1038},[4562],{"type":998,"value":1165},{"type":992,"tag":1026,"props":4564,"children":4565},{"style":1032},[4566],{"type":998,"value":1170},{"type":992,"tag":1026,"props":4568,"children":4569},{"style":1038},[4570],{"type":998,"value":4571}," sample_files:\n",{"type":992,"tag":1026,"props":4573,"children":4574},{"class":1028,"line":164},[4575,4579,4583,4587,4591,4595,4599,4603],{"type":992,"tag":1026,"props":4576,"children":4577},{"style":1032},[4578],{"type":998,"value":2559},{"type":992,"tag":1026,"props":4580,"children":4581},{"style":1079},[4582],{"type":998,"value":1316},{"type":992,"tag":1026,"props":4584,"children":4585},{"style":1038},[4586],{"type":998,"value":2568},{"type":992,"tag":1026,"props":4588,"children":4589},{"style":1090},[4590],{"type":998,"value":1334},{"type":992,"tag":1026,"props":4592,"children":4593},{"style":1038},[4594],{"type":998,"value":1339},{"type":992,"tag":1026,"props":4596,"children":4597},{"style":1032},[4598],{"type":998,"value":1344},{"type":992,"tag":1026,"props":4600,"children":4601},{"style":1347},[4602],{"type":998,"value":1350},{"type":992,"tag":1026,"props":4604,"children":4605},{"style":1038},[4606],{"type":998,"value":1247},{"type":992,"tag":1026,"props":4608,"children":4609},{"class":1028,"line":173},[4610,4614,4618,4622,4627,4631,4635,4639,4643],{"type":992,"tag":1026,"props":4611,"children":4612},{"style":1347},[4613],{"type":998,"value":2596},{"type":992,"tag":1026,"props":4615,"children":4616},{"style":1038},[4617],{"type":998,"value":1367},{"type":992,"tag":1026,"props":4619,"children":4620},{"style":1032},[4621],{"type":998,"value":1205},{"type":992,"tag":1026,"props":4623,"children":4624},{"style":1090},[4625],{"type":998,"value":4626},"\"Sample content for ",{"type":992,"tag":1026,"props":4628,"children":4629},{"style":1079},[4630],{"type":998,"value":1215},{"type":992,"tag":1026,"props":4632,"children":4633},{"style":1038},[4634],{"type":998,"value":1220},{"type":992,"tag":1026,"props":4636,"children":4637},{"style":1079},[4638],{"type":998,"value":1225},{"type":992,"tag":1026,"props":4640,"children":4641},{"style":1090},[4642],{"type":998,"value":1382},{"type":992,"tag":1026,"props":4644,"children":4645},{"style":1038},[4646],{"type":998,"value":1098},{"type":992,"tag":1026,"props":4648,"children":4649},{"class":1028,"line":182},[4650,4654,4658,4662,4666,4670,4674,4678,4682],{"type":992,"tag":1026,"props":4651,"children":4652},{"style":1079},[4653],{"type":998,"value":1196},{"type":992,"tag":1026,"props":4655,"children":4656},{"style":1038},[4657],{"type":998,"value":1087},{"type":992,"tag":1026,"props":4659,"children":4660},{"style":1032},[4661],{"type":998,"value":1205},{"type":992,"tag":1026,"props":4663,"children":4664},{"style":1090},[4665],{"type":998,"value":2621},{"type":992,"tag":1026,"props":4667,"children":4668},{"style":1079},[4669],{"type":998,"value":1215},{"type":992,"tag":1026,"props":4671,"children":4672},{"style":1038},[4673],{"type":998,"value":1220},{"type":992,"tag":1026,"props":4675,"children":4676},{"style":1079},[4677],{"type":998,"value":1225},{"type":992,"tag":1026,"props":4679,"children":4680},{"style":1090},[4681],{"type":998,"value":1382},{"type":992,"tag":1026,"props":4683,"children":4684},{"style":1038},[4685],{"type":998,"value":1098},{"type":992,"tag":1026,"props":4687,"children":4688},{"class":1028,"line":191},[4689],{"type":992,"tag":1026,"props":4690,"children":4691},{"style":1038},[4692],{"type":998,"value":1552},{"type":992,"tag":1026,"props":4694,"children":4695},{"class":1028,"line":201},[4696],{"type":992,"tag":1026,"props":4697,"children":4698},{"style":1055},[4699],{"type":998,"value":4700},"    # Define organization categories\n",{"type":992,"tag":1026,"props":4702,"children":4703},{"class":1028,"line":210},[4704,4709,4713],{"type":992,"tag":1026,"props":4705,"children":4706},{"style":1038},[4707],{"type":998,"value":4708},"    categories ",{"type":992,"tag":1026,"props":4710,"children":4711},{"style":1032},[4712],{"type":998,"value":1111},{"type":992,"tag":1026,"props":4714,"children":4715},{"style":1038},[4716],{"type":998,"value":2414},{"type":992,"tag":1026,"props":4718,"children":4719},{"class":1028,"line":219},[4720,4725,4730,4735,4739,4744,4748,4753],{"type":992,"tag":1026,"props":4721,"children":4722},{"style":1090},[4723],{"type":998,"value":4724},"        \"Documents\"",{"type":992,"tag":1026,"props":4726,"children":4727},{"style":1038},[4728],{"type":998,"value":4729},": [",{"type":992,"tag":1026,"props":4731,"children":4732},{"style":1090},[4733],{"type":998,"value":4734},"\".pdf\"",{"type":992,"tag":1026,"props":4736,"children":4737},{"style":1038},[4738],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4740,"children":4741},{"style":1090},[4742],{"type":998,"value":4743},"\".txt\"",{"type":992,"tag":1026,"props":4745,"children":4746},{"style":1038},[4747],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4749,"children":4750},{"style":1090},[4751],{"type":998,"value":4752},"\".doc\"",{"type":992,"tag":1026,"props":4754,"children":4755},{"style":1038},[4756],{"type":998,"value":4757},"],\n",{"type":992,"tag":1026,"props":4759,"children":4760},{"class":1028,"line":228},[4761,4766,4770,4775,4779,4784,4788,4793],{"type":992,"tag":1026,"props":4762,"children":4763},{"style":1090},[4764],{"type":998,"value":4765},"        \"Data\"",{"type":992,"tag":1026,"props":4767,"children":4768},{"style":1038},[4769],{"type":998,"value":4729},{"type":992,"tag":1026,"props":4771,"children":4772},{"style":1090},[4773],{"type":998,"value":4774},"\".csv\"",{"type":992,"tag":1026,"props":4776,"children":4777},{"style":1038},[4778],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4780,"children":4781},{"style":1090},[4782],{"type":998,"value":4783},"\".json\"",{"type":992,"tag":1026,"props":4785,"children":4786},{"style":1038},[4787],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4789,"children":4790},{"style":1090},[4791],{"type":998,"value":4792},"\".xml\"",{"type":992,"tag":1026,"props":4794,"children":4795},{"style":1038},[4796],{"type":998,"value":4757},{"type":992,"tag":1026,"props":4798,"children":4799},{"class":1028,"line":238},[4800,4805,4809,4814,4818,4823,4827,4832],{"type":992,"tag":1026,"props":4801,"children":4802},{"style":1090},[4803],{"type":998,"value":4804},"        \"Scripts\"",{"type":992,"tag":1026,"props":4806,"children":4807},{"style":1038},[4808],{"type":998,"value":4729},{"type":992,"tag":1026,"props":4810,"children":4811},{"style":1090},[4812],{"type":998,"value":4813},"\".py\"",{"type":992,"tag":1026,"props":4815,"children":4816},{"style":1038},[4817],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4819,"children":4820},{"style":1090},[4821],{"type":998,"value":4822},"\".js\"",{"type":992,"tag":1026,"props":4824,"children":4825},{"style":1038},[4826],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4828,"children":4829},{"style":1090},[4830],{"type":998,"value":4831},"\".html\"",{"type":992,"tag":1026,"props":4833,"children":4834},{"style":1038},[4835],{"type":998,"value":4757},{"type":992,"tag":1026,"props":4837,"children":4838},{"class":1028,"line":247},[4839,4844,4848,4853,4857,4862,4866,4871],{"type":992,"tag":1026,"props":4840,"children":4841},{"style":1090},[4842],{"type":998,"value":4843},"        \"Images\"",{"type":992,"tag":1026,"props":4845,"children":4846},{"style":1038},[4847],{"type":998,"value":4729},{"type":992,"tag":1026,"props":4849,"children":4850},{"style":1090},[4851],{"type":998,"value":4852},"\".jpg\"",{"type":992,"tag":1026,"props":4854,"children":4855},{"style":1038},[4856],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4858,"children":4859},{"style":1090},[4860],{"type":998,"value":4861},"\".png\"",{"type":992,"tag":1026,"props":4863,"children":4864},{"style":1038},[4865],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4867,"children":4868},{"style":1090},[4869],{"type":998,"value":4870},"\".gif\"",{"type":992,"tag":1026,"props":4872,"children":4873},{"style":1038},[4874],{"type":998,"value":4757},{"type":992,"tag":1026,"props":4876,"children":4877},{"class":1028,"line":256},[4878,4883,4887,4892,4896,4901,4905,4910],{"type":992,"tag":1026,"props":4879,"children":4880},{"style":1090},[4881],{"type":998,"value":4882},"        \"Archives\"",{"type":992,"tag":1026,"props":4884,"children":4885},{"style":1038},[4886],{"type":998,"value":4729},{"type":992,"tag":1026,"props":4888,"children":4889},{"style":1090},[4890],{"type":998,"value":4891},"\".zip\"",{"type":992,"tag":1026,"props":4893,"children":4894},{"style":1038},[4895],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4897,"children":4898},{"style":1090},[4899],{"type":998,"value":4900},"\".tar\"",{"type":992,"tag":1026,"props":4902,"children":4903},{"style":1038},[4904],{"type":998,"value":1126},{"type":992,"tag":1026,"props":4906,"children":4907},{"style":1090},[4908],{"type":998,"value":4909},"\".gz\"",{"type":992,"tag":1026,"props":4911,"children":4912},{"style":1038},[4913],{"type":998,"value":1145},{"type":992,"tag":1026,"props":4915,"children":4916},{"class":1028,"line":265},[4917],{"type":992,"tag":1026,"props":4918,"children":4919},{"style":1038},[4920],{"type":998,"value":2502},{"type":992,"tag":1026,"props":4922,"children":4923},{"class":1028,"line":274},[4924],{"type":992,"tag":1026,"props":4925,"children":4926},{"style":1038},[4927],{"type":998,"value":1552},{"type":992,"tag":1026,"props":4929,"children":4930},{"class":1028,"line":284},[4931,4935,4939,4943,4947,4951,4956],{"type":992,"tag":1026,"props":4932,"children":4933},{"style":1079},[4934],{"type":998,"value":1560},{"type":992,"tag":1026,"props":4936,"children":4937},{"style":1038},[4938],{"type":998,"value":1087},{"type":992,"tag":1026,"props":4940,"children":4941},{"style":1032},[4942],{"type":998,"value":1205},{"type":992,"tag":1026,"props":4944,"children":4945},{"style":1090},[4946],{"type":998,"value":1382},{"type":992,"tag":1026,"props":4948,"children":4949},{"style":1079},[4950],{"type":998,"value":1377},{"type":992,"tag":1026,"props":4952,"children":4953},{"style":1090},[4954],{"type":998,"value":4955},"📂 Organizing files by type:\"",{"type":992,"tag":1026,"props":4957,"children":4958},{"style":1038},[4959],{"type":998,"value":1098},{"type":992,"tag":1026,"props":4961,"children":4962},{"class":1028,"line":293},[4963],{"type":992,"tag":1026,"props":4964,"children":4965},{"style":1038},[4966],{"type":998,"value":1552},{"type":992,"tag":1026,"props":4968,"children":4969},{"class":1028,"line":302},[4970],{"type":992,"tag":1026,"props":4971,"children":4972},{"style":1055},[4973],{"type":998,"value":4974},"    # Create category directories\n",{"type":992,"tag":1026,"props":4976,"children":4977},{"class":1028,"line":311},[4978,4982,4987,4991],{"type":992,"tag":1026,"props":4979,"children":4980},{"style":1032},[4981],{"type":998,"value":2537},{"type":992,"tag":1026,"props":4983,"children":4984},{"style":1038},[4985],{"type":998,"value":4986}," category ",{"type":992,"tag":1026,"props":4988,"children":4989},{"style":1032},[4990],{"type":998,"value":1170},{"type":992,"tag":1026,"props":4992,"children":4993},{"style":1038},[4994],{"type":998,"value":4995}," categories.keys():\n",{"type":992,"tag":1026,"props":4997,"children":4998},{"class":1028,"line":320},[4999,5003,5007],{"type":992,"tag":1026,"props":5000,"children":5001},{"style":1032},[5002],{"type":998,"value":2740},{"type":992,"tag":1026,"props":5004,"children":5005},{"style":1032},[5006],{"type":998,"value":1940},{"type":992,"tag":1026,"props":5008,"children":5009},{"style":1038},[5010],{"type":998,"value":5011}," os.path.exists(category):\n",{"type":992,"tag":1026,"props":5013,"children":5014},{"class":1028,"line":329},[5015],{"type":992,"tag":1026,"props":5016,"children":5017},{"style":1038},[5018],{"type":998,"value":5019},"            os.mkdir(category)\n",{"type":992,"tag":1026,"props":5021,"children":5022},{"class":1028,"line":338},[5023,5027,5031,5035,5040,5044,5049,5053,5058],{"type":992,"tag":1026,"props":5024,"children":5025},{"style":1079},[5026],{"type":998,"value":2785},{"type":992,"tag":1026,"props":5028,"children":5029},{"style":1038},[5030],{"type":998,"value":1087},{"type":992,"tag":1026,"props":5032,"children":5033},{"style":1032},[5034],{"type":998,"value":1205},{"type":992,"tag":1026,"props":5036,"children":5037},{"style":1090},[5038],{"type":998,"value":5039},"\"   📁 Created ",{"type":992,"tag":1026,"props":5041,"children":5042},{"style":1079},[5043],{"type":998,"value":1215},{"type":992,"tag":1026,"props":5045,"children":5046},{"style":1038},[5047],{"type":998,"value":5048},"category",{"type":992,"tag":1026,"props":5050,"children":5051},{"style":1079},[5052],{"type":998,"value":1225},{"type":992,"tag":1026,"props":5054,"children":5055},{"style":1090},[5056],{"type":998,"value":5057}," folder\"",{"type":992,"tag":1026,"props":5059,"children":5060},{"style":1038},[5061],{"type":998,"value":1098},{"type":992,"tag":1026,"props":5063,"children":5064},{"class":1028,"line":347},[5065],{"type":992,"tag":1026,"props":5066,"children":5067},{"style":1038},[5068],{"type":998,"value":1552},{"type":992,"tag":1026,"props":5070,"children":5071},{"class":1028,"line":356},[5072],{"type":992,"tag":1026,"props":5073,"children":5074},{"style":1055},[5075],{"type":998,"value":5076},"    # Organize files\n",{"type":992,"tag":1026,"props":5078,"children":5079},{"class":1028,"line":365},[5080,5085,5089,5094,5098,5103,5107,5111,5115,5119,5123],{"type":992,"tag":1026,"props":5081,"children":5082},{"style":1038},[5083],{"type":998,"value":5084},"    current_files ",{"type":992,"tag":1026,"props":5086,"children":5087},{"style":1032},[5088],{"type":998,"value":1111},{"type":992,"tag":1026,"props":5090,"children":5091},{"style":1038},[5092],{"type":998,"value":5093}," [f ",{"type":992,"tag":1026,"props":5095,"children":5096},{"style":1032},[5097],{"type":998,"value":1160},{"type":992,"tag":1026,"props":5099,"children":5100},{"style":1038},[5101],{"type":998,"value":5102}," f ",{"type":992,"tag":1026,"props":5104,"children":5105},{"style":1032},[5106],{"type":998,"value":1170},{"type":992,"tag":1026,"props":5108,"children":5109},{"style":1038},[5110],{"type":998,"value":1781},{"type":992,"tag":1026,"props":5112,"children":5113},{"style":1090},[5114],{"type":998,"value":1786},{"type":992,"tag":1026,"props":5116,"children":5117},{"style":1038},[5118],{"type":998,"value":1339},{"type":992,"tag":1026,"props":5120,"children":5121},{"style":1032},[5122],{"type":998,"value":1481},{"type":992,"tag":1026,"props":5124,"children":5125},{"style":1038},[5126],{"type":998,"value":5127}," os.path.isfile(f)]\n",{"type":992,"tag":1026,"props":5129,"children":5130},{"class":1028,"line":374},[5131],{"type":992,"tag":1026,"props":5132,"children":5133},{"style":1038},[5134],{"type":998,"value":1552},{"type":992,"tag":1026,"props":5136,"children":5137},{"class":1028,"line":384},[5138,5142,5146,5150],{"type":992,"tag":1026,"props":5139,"children":5140},{"style":1032},[5141],{"type":998,"value":2537},{"type":992,"tag":1026,"props":5143,"children":5144},{"style":1038},[5145],{"type":998,"value":1165},{"type":992,"tag":1026,"props":5147,"children":5148},{"style":1032},[5149],{"type":998,"value":1170},{"type":992,"tag":1026,"props":5151,"children":5152},{"style":1038},[5153],{"type":998,"value":5154}," current_files:\n",{"type":992,"tag":1026,"props":5156,"children":5157},{"class":1028,"line":393},[5158],{"type":992,"tag":1026,"props":5159,"children":5160},{"style":1055},[5161],{"type":998,"value":5162},"        # Get file extension\n",{"type":992,"tag":1026,"props":5164,"children":5165},{"class":1028,"line":402},[5166,5171,5175],{"type":992,"tag":1026,"props":5167,"children":5168},{"style":1038},[5169],{"type":998,"value":5170},"        _, ext ",{"type":992,"tag":1026,"props":5172,"children":5173},{"style":1032},[5174],{"type":998,"value":1111},{"type":992,"tag":1026,"props":5176,"children":5177},{"style":1038},[5178],{"type":998,"value":5179}," os.path.splitext(filename)\n",{"type":992,"tag":1026,"props":5181,"children":5182},{"class":1028,"line":411},[5183,5188,5192],{"type":992,"tag":1026,"props":5184,"children":5185},{"style":1038},[5186],{"type":998,"value":5187},"        ext ",{"type":992,"tag":1026,"props":5189,"children":5190},{"style":1032},[5191],{"type":998,"value":1111},{"type":992,"tag":1026,"props":5193,"children":5194},{"style":1038},[5195],{"type":998,"value":5196}," ext.lower()\n",{"type":992,"tag":1026,"props":5198,"children":5199},{"class":1028,"line":420},[5200],{"type":992,"tag":1026,"props":5201,"children":5202},{"style":1038},[5203],{"type":998,"value":3754},{"type":992,"tag":1026,"props":5205,"children":5206},{"class":1028,"line":429},[5207],{"type":992,"tag":1026,"props":5208,"children":5209},{"style":1055},[5210],{"type":998,"value":5211},"        # Find matching category\n",{"type":992,"tag":1026,"props":5213,"children":5214},{"class":1028,"line":438},[5215,5220,5224],{"type":992,"tag":1026,"props":5216,"children":5217},{"style":1038},[5218],{"type":998,"value":5219},"        moved ",{"type":992,"tag":1026,"props":5221,"children":5222},{"style":1032},[5223],{"type":998,"value":1111},{"type":992,"tag":1026,"props":5225,"children":5226},{"style":1079},[5227],{"type":998,"value":5228}," False\n",{"type":992,"tag":1026,"props":5230,"children":5231},{"class":1028,"line":447},[5232,5236,5241,5245],{"type":992,"tag":1026,"props":5233,"children":5234},{"style":1032},[5235],{"type":998,"value":3804},{"type":992,"tag":1026,"props":5237,"children":5238},{"style":1038},[5239],{"type":998,"value":5240}," category, extensions ",{"type":992,"tag":1026,"props":5242,"children":5243},{"style":1032},[5244],{"type":998,"value":1170},{"type":992,"tag":1026,"props":5246,"children":5247},{"style":1038},[5248],{"type":998,"value":5249}," categories.items():\n",{"type":992,"tag":1026,"props":5251,"children":5252},{"class":1028,"line":457},[5253,5257,5262,5266],{"type":992,"tag":1026,"props":5254,"children":5255},{"style":1032},[5256],{"type":998,"value":2907},{"type":992,"tag":1026,"props":5258,"children":5259},{"style":1038},[5260],{"type":998,"value":5261}," ext ",{"type":992,"tag":1026,"props":5263,"children":5264},{"style":1032},[5265],{"type":998,"value":1170},{"type":992,"tag":1026,"props":5267,"children":5268},{"style":1038},[5269],{"type":998,"value":5270}," extensions:\n",{"type":992,"tag":1026,"props":5272,"children":5273},{"class":1028,"line":466},[5274,5279],{"type":992,"tag":1026,"props":5275,"children":5276},{"style":1032},[5277],{"type":998,"value":5278},"                try",{"type":992,"tag":1026,"props":5280,"children":5281},{"style":1038},[5282],{"type":998,"value":1247},{"type":992,"tag":1026,"props":5284,"children":5285},{"class":1028,"line":475},[5286],{"type":992,"tag":1026,"props":5287,"children":5288},{"style":1055},[5289],{"type":998,"value":5290},"                    # Move file to category folder\n",{"type":992,"tag":1026,"props":5292,"children":5293},{"class":1028,"line":484},[5294,5299,5303],{"type":992,"tag":1026,"props":5295,"children":5296},{"style":1038},[5297],{"type":998,"value":5298},"                    old_path ",{"type":992,"tag":1026,"props":5300,"children":5301},{"style":1032},[5302],{"type":998,"value":1111},{"type":992,"tag":1026,"props":5304,"children":5305},{"style":1038},[5306],{"type":998,"value":5307}," filename\n",{"type":992,"tag":1026,"props":5309,"children":5310},{"class":1028,"line":493},[5311,5316,5320],{"type":992,"tag":1026,"props":5312,"children":5313},{"style":1038},[5314],{"type":998,"value":5315},"                    new_path ",{"type":992,"tag":1026,"props":5317,"children":5318},{"style":1032},[5319],{"type":998,"value":1111},{"type":992,"tag":1026,"props":5321,"children":5322},{"style":1038},[5323],{"type":998,"value":5324}," os.path.join(category, filename)\n",{"type":992,"tag":1026,"props":5326,"children":5327},{"class":1028,"line":502},[5328],{"type":992,"tag":1026,"props":5329,"children":5330},{"style":1038},[5331],{"type":998,"value":5332},"                    os.rename(old_path, new_path)\n",{"type":992,"tag":1026,"props":5334,"children":5335},{"class":1028,"line":511},[5336,5341,5345,5349,5354,5358,5362,5366,5371,5375,5379,5383,5387],{"type":992,"tag":1026,"props":5337,"children":5338},{"style":1079},[5339],{"type":998,"value":5340},"                    print",{"type":992,"tag":1026,"props":5342,"children":5343},{"style":1038},[5344],{"type":998,"value":1087},{"type":992,"tag":1026,"props":5346,"children":5347},{"style":1032},[5348],{"type":998,"value":1205},{"type":992,"tag":1026,"props":5350,"children":5351},{"style":1090},[5352],{"type":998,"value":5353},"\"   📦 Moved ",{"type":992,"tag":1026,"props":5355,"children":5356},{"style":1079},[5357],{"type":998,"value":1215},{"type":992,"tag":1026,"props":5359,"children":5360},{"style":1038},[5361],{"type":998,"value":1220},{"type":992,"tag":1026,"props":5363,"children":5364},{"style":1079},[5365],{"type":998,"value":1225},{"type":992,"tag":1026,"props":5367,"children":5368},{"style":1090},[5369],{"type":998,"value":5370}," to ",{"type":992,"tag":1026,"props":5372,"children":5373},{"style":1079},[5374],{"type":998,"value":1215},{"type":992,"tag":1026,"props":5376,"children":5377},{"style":1038},[5378],{"type":998,"value":5048},{"type":992,"tag":1026,"props":5380,"children":5381},{"style":1079},[5382],{"type":998,"value":1225},{"type":992,"tag":1026,"props":5384,"children":5385},{"style":1090},[5386],{"type":998,"value":4035},{"type":992,"tag":1026,"props":5388,"children":5389},{"style":1038},[5390],{"type":998,"value":1098},{"type":992,"tag":1026,"props":5392,"children":5393},{"class":1028,"line":520},[5394,5399,5403],{"type":992,"tag":1026,"props":5395,"children":5396},{"style":1038},[5397],{"type":998,"value":5398},"                    moved ",{"type":992,"tag":1026,"props":5400,"children":5401},{"style":1032},[5402],{"type":998,"value":1111},{"type":992,"tag":1026,"props":5404,"children":5405},{"style":1079},[5406],{"type":998,"value":5407}," True\n",{"type":992,"tag":1026,"props":5409,"children":5410},{"class":1028,"line":530},[5411],{"type":992,"tag":1026,"props":5412,"children":5413},{"style":1032},[5414],{"type":998,"value":5415},"                    break\n",{"type":992,"tag":1026,"props":5417,"children":5418},{"class":1028,"line":539},[5419,5424,5428,5432],{"type":992,"tag":1026,"props":5420,"children":5421},{"style":1032},[5422],{"type":998,"value":5423},"                except",{"type":992,"tag":1026,"props":5425,"children":5426},{"style":1079},[5427],{"type":998,"value":3529},{"type":992,"tag":1026,"props":5429,"children":5430},{"style":1032},[5431],{"type":998,"value":3534},{"type":992,"tag":1026,"props":5433,"children":5434},{"style":1038},[5435],{"type":998,"value":3539},{"type":992,"tag":1026,"props":5437,"children":5438},{"class":1028,"line":548},[5439,5443,5447,5451,5456,5460,5464,5468,5472,5476,5480,5484,5488],{"type":992,"tag":1026,"props":5440,"children":5441},{"style":1079},[5442],{"type":998,"value":5340},{"type":992,"tag":1026,"props":5444,"children":5445},{"style":1038},[5446],{"type":998,"value":1087},{"type":992,"tag":1026,"props":5448,"children":5449},{"style":1032},[5450],{"type":998,"value":1205},{"type":992,"tag":1026,"props":5452,"children":5453},{"style":1090},[5454],{"type":998,"value":5455},"\"   ❌ Error moving ",{"type":992,"tag":1026,"props":5457,"children":5458},{"style":1079},[5459],{"type":998,"value":1215},{"type":992,"tag":1026,"props":5461,"children":5462},{"style":1038},[5463],{"type":998,"value":1220},{"type":992,"tag":1026,"props":5465,"children":5466},{"style":1079},[5467],{"type":998,"value":1225},{"type":992,"tag":1026,"props":5469,"children":5470},{"style":1090},[5471],{"type":998,"value":2427},{"type":992,"tag":1026,"props":5473,"children":5474},{"style":1079},[5475],{"type":998,"value":1215},{"type":992,"tag":1026,"props":5477,"children":5478},{"style":1038},[5479],{"type":998,"value":3568},{"type":992,"tag":1026,"props":5481,"children":5482},{"style":1079},[5483],{"type":998,"value":1225},{"type":992,"tag":1026,"props":5485,"children":5486},{"style":1090},[5487],{"type":998,"value":1382},{"type":992,"tag":1026,"props":5489,"children":5490},{"style":1038},[5491],{"type":998,"value":1098},{"type":992,"tag":1026,"props":5493,"children":5494},{"class":1028,"line":557},[5495],{"type":992,"tag":1026,"props":5496,"children":5497},{"style":1038},[5498],{"type":998,"value":3754},{"type":992,"tag":1026,"props":5500,"children":5501},{"class":1028,"line":566},[5502,5506,5510,5515,5520,5524,5528],{"type":992,"tag":1026,"props":5503,"children":5504},{"style":1032},[5505],{"type":998,"value":2740},{"type":992,"tag":1026,"props":5507,"children":5508},{"style":1032},[5509],{"type":998,"value":1940},{"type":992,"tag":1026,"props":5511,"children":5512},{"style":1038},[5513],{"type":998,"value":5514}," moved ",{"type":992,"tag":1026,"props":5516,"children":5517},{"style":1032},[5518],{"type":998,"value":5519},"and",{"type":992,"tag":1026,"props":5521,"children":5522},{"style":1038},[5523],{"type":998,"value":1165},{"type":992,"tag":1026,"props":5525,"children":5526},{"style":1032},[5527],{"type":998,"value":1170},{"type":992,"tag":1026,"props":5529,"children":5530},{"style":1038},[5531],{"type":998,"value":4571},{"type":992,"tag":1026,"props":5533,"children":5534},{"class":1028,"line":575},[5535,5539,5543,5547,5552,5556,5560,5564,5568],{"type":992,"tag":1026,"props":5536,"children":5537},{"style":1079},[5538],{"type":998,"value":2785},{"type":992,"tag":1026,"props":5540,"children":5541},{"style":1038},[5542],{"type":998,"value":1087},{"type":992,"tag":1026,"props":5544,"children":5545},{"style":1032},[5546],{"type":998,"value":1205},{"type":992,"tag":1026,"props":5548,"children":5549},{"style":1090},[5550],{"type":998,"value":5551},"\"   ⚠️ No category for ",{"type":992,"tag":1026,"props":5553,"children":5554},{"style":1079},[5555],{"type":998,"value":1215},{"type":992,"tag":1026,"props":5557,"children":5558},{"style":1038},[5559],{"type":998,"value":1220},{"type":992,"tag":1026,"props":5561,"children":5562},{"style":1079},[5563],{"type":998,"value":1225},{"type":992,"tag":1026,"props":5565,"children":5566},{"style":1090},[5567],{"type":998,"value":1382},{"type":992,"tag":1026,"props":5569,"children":5570},{"style":1038},[5571],{"type":998,"value":1098},{"type":992,"tag":1026,"props":5573,"children":5574},{"class":1028,"line":584},[5575],{"type":992,"tag":1026,"props":5576,"children":5577},{"emptyLinePlaceholder":13},[5578],{"type":998,"value":1049},{"type":992,"tag":1026,"props":5580,"children":5581},{"class":1028,"line":593},[5582],{"type":992,"tag":1026,"props":5583,"children":5584},{"style":1038},[5585],{"type":998,"value":5586},"organize_files()\n",{"type":992,"tag":2004,"props":5588,"children":5590},{"id":5589},"️-file-system-maintenance",[5591],{"type":998,"value":5592},"🛠️ File System Maintenance",{"type":992,"tag":1001,"props":5594,"children":5595},{},[5596],{"type":998,"value":5597},"Regular maintenance keeps your file system organized and prevents issues.",{"type":992,"tag":2016,"props":5599,"children":5603},{"emoji":5600,"title":5601,"type":5602},"🧹","Maintenance Best Practices","success",[5604,5612,5620,5667,5675,5718,5726,5769,5777],{"type":992,"tag":1001,"props":5605,"children":5606},{},[5607],{"type":992,"tag":2026,"props":5608,"children":5609},{},[5610],{"type":998,"value":5611},"File Cleanup Strategies:",{"type":992,"tag":1001,"props":5613,"children":5614},{},[5615],{"type":992,"tag":2026,"props":5616,"children":5617},{},[5618],{"type":998,"value":5619},"🗑️ Safe Deletion:",{"type":992,"tag":2040,"props":5621,"children":5622},{},[5623,5634,5646,5657],{"type":992,"tag":2044,"props":5624,"children":5625},{},[5626,5627,5632],{"type":998,"value":2252},{"type":992,"tag":2026,"props":5628,"children":5629},{},[5630],{"type":998,"value":5631},"confirm",{"type":998,"value":5633}," before deleting files",{"type":992,"tag":2044,"props":5635,"children":5636},{},[5637,5639,5644],{"type":998,"value":5638},"Create ",{"type":992,"tag":2026,"props":5640,"children":5641},{},[5642],{"type":998,"value":5643},"backups",{"type":998,"value":5645}," of important data",{"type":992,"tag":2044,"props":5647,"children":5648},{},[5649,5650,5655],{"type":998,"value":2276},{"type":992,"tag":2026,"props":5651,"children":5652},{},[5653],{"type":998,"value":5654},"simulation mode",{"type":998,"value":5656}," to test cleanup rules",{"type":992,"tag":2044,"props":5658,"children":5659},{},[5660,5665],{"type":992,"tag":2026,"props":5661,"children":5662},{},[5663],{"type":998,"value":5664},"Log deletions",{"type":998,"value":5666}," for accountability",{"type":992,"tag":1001,"props":5668,"children":5669},{},[5670],{"type":992,"tag":2026,"props":5671,"children":5672},{},[5673],{"type":998,"value":5674},"📈 File Analysis:",{"type":992,"tag":2040,"props":5676,"children":5677},{},[5678,5688,5698,5708],{"type":992,"tag":2044,"props":5679,"children":5680},{},[5681,5686],{"type":992,"tag":2026,"props":5682,"children":5683},{},[5684],{"type":998,"value":5685},"Monitor file sizes",{"type":998,"value":5687}," and growth",{"type":992,"tag":2044,"props":5689,"children":5690},{},[5691,5696],{"type":992,"tag":2026,"props":5692,"children":5693},{},[5694],{"type":998,"value":5695},"Track file ages",{"type":998,"value":5697}," for cleanup decisions",{"type":992,"tag":2044,"props":5699,"children":5700},{},[5701,5706],{"type":992,"tag":2026,"props":5702,"children":5703},{},[5704],{"type":998,"value":5705},"Identify duplicates",{"type":998,"value":5707}," for space saving",{"type":992,"tag":2044,"props":5709,"children":5710},{},[5711,5716],{"type":992,"tag":2026,"props":5712,"children":5713},{},[5714],{"type":998,"value":5715},"Check disk usage",{"type":998,"value":5717}," regularly",{"type":992,"tag":1001,"props":5719,"children":5720},{},[5721],{"type":992,"tag":2026,"props":5722,"children":5723},{},[5724],{"type":998,"value":5725},"🔄 Organization Tasks:",{"type":992,"tag":2040,"props":5727,"children":5728},{},[5729,5739,5749,5759],{"type":992,"tag":2044,"props":5730,"children":5731},{},[5732,5737],{"type":992,"tag":2026,"props":5733,"children":5734},{},[5735],{"type":998,"value":5736},"Sort by date, type, or size",{"type":998,"value":5738}," automatically",{"type":992,"tag":2044,"props":5740,"children":5741},{},[5742,5747],{"type":992,"tag":2026,"props":5743,"children":5744},{},[5745],{"type":998,"value":5746},"Create consistent naming",{"type":998,"value":5748}," conventions",{"type":992,"tag":2044,"props":5750,"children":5751},{},[5752,5757],{"type":992,"tag":2026,"props":5753,"children":5754},{},[5755],{"type":998,"value":5756},"Maintain directory structures",{"type":998,"value":5758}," logically",{"type":992,"tag":2044,"props":5760,"children":5761},{},[5762,5767],{"type":992,"tag":2026,"props":5763,"children":5764},{},[5765],{"type":998,"value":5766},"Archive old files",{"type":998,"value":5768}," systematically",{"type":992,"tag":1001,"props":5770,"children":5771},{},[5772],{"type":992,"tag":2026,"props":5773,"children":5774},{},[5775],{"type":998,"value":5776},"⚡ Automation Tips:",{"type":992,"tag":2040,"props":5778,"children":5779},{},[5780,5790,5800,5810],{"type":992,"tag":2044,"props":5781,"children":5782},{},[5783,5788],{"type":992,"tag":2026,"props":5784,"children":5785},{},[5786],{"type":998,"value":5787},"Schedule regular",{"type":998,"value":5789}," maintenance tasks",{"type":992,"tag":2044,"props":5791,"children":5792},{},[5793,5798],{"type":992,"tag":2026,"props":5794,"children":5795},{},[5796],{"type":998,"value":5797},"Set size or age limits",{"type":998,"value":5799}," for automatic action",{"type":992,"tag":2044,"props":5801,"children":5802},{},[5803,5808],{"type":992,"tag":2026,"props":5804,"children":5805},{},[5806],{"type":998,"value":5807},"Use batch operations",{"type":998,"value":5809}," for efficiency",{"type":992,"tag":2044,"props":5811,"children":5812},{},[5813,5818],{"type":992,"tag":2026,"props":5814,"children":5815},{},[5816],{"type":998,"value":5817},"Monitor and log",{"type":998,"value":5819}," all activities",{"type":992,"tag":2305,"props":5821,"children":5823},{"id":5822},"file-cleanup-and-maintenance",[5824],{"type":998,"value":5825},"🧹 File Cleanup and Maintenance",{"type":992,"tag":1012,"props":5827,"children":5828},{},[5829],{"type":992,"tag":1016,"props":5830,"children":5832},{"className":1018,"code":5831,"language":6,"meta":8,"style":8},"import os\nimport time\n\n# 🧹 File Maintenance Demo\n\ndef file_maintenance():\n    print(\"🧹 File maintenance demo:\")\n    \n    # Create some old and new files for demo\n    test_files = [\"old_log.txt\", \"recent_data.csv\", \"temp_file.tmp\"]\n    \n    for i, filename in enumerate(test_files):\n        with open(filename, \"w\") as file:\n            file.write(f\"Content for {filename}\")\n        \n        # Make some files appear \"older\"\n        if \"old\" in filename or \"temp\" in filename:\n            # Set modification time to 30 days ago\n            old_time = time.time() - (30 * 24 * 60 * 60)\n            os.utime(filename, (old_time, old_time))\n    \n    print(\"   📄 Created test files with different ages\")\n    \n    # File maintenance analysis\n    print(f\"\\n📊 File analysis:\")\n    current_time = time.time()\n    old_files = []\n    large_files = []\n    temp_files = []\n    \n    for filename in os.listdir(\".\"):\n        if os.path.isfile(filename):\n            stats = os.stat(filename)\n            \n            # Check file age (older than 7 days)\n            days_old = (current_time - stats.st_mtime) / (24 * 60 * 60)\n            if days_old > 7:\n                old_files.append((filename, int(days_old)))\n            \n            # Check file size (larger than 1KB)\n            if stats.st_size > 1024:\n                large_files.append((filename, stats.st_size))\n            \n            # Check for temporary files\n            if filename.endswith(('.tmp', '.temp', '.bak')):\n                temp_files.append(filename)\n    \n    # Report findings\n    print(f\"   📅 Old files (>7 days): {len(old_files)}\")\n    for filename, age in old_files[:3]:\n        print(f\"      {filename} ({age} days old)\")\n    \n    print(f\"   📦 Large files (>1KB): {len(large_files)}\")\n    for filename, size in large_files[:3]:\n        print(f\"      {filename} ({size} bytes)\")\n    \n    print(f\"   🗑️ Temporary files: {len(temp_files)}\")\n    for filename in temp_files:\n        print(f\"      {filename}\")\n    \n    # Cleanup suggestions (simulation mode)\n    print(f\"\\n💡 Cleanup suggestions:\")\n    if old_files:\n        print(f\"   Consider archiving {len(old_files)} old files\")\n    if temp_files:\n        print(f\"   Can safely delete {len(temp_files)} temporary files\")\n    if large_files:\n        print(f\"   Review {len(large_files)} large files for compression\")\n\nfile_maintenance()\n",[5833],{"type":992,"tag":1022,"props":5834,"children":5835},{"__ignoreMap":8},[5836,5847,5858,5865,5873,5880,5896,5916,5923,5931,5973,5980,6006,6041,6081,6088,6096,6135,6143,6204,6212,6219,6239,6246,6254,6286,6303,6320,6336,6352,6359,6386,6398,6413,6420,6428,6487,6512,6530,6537,6545,6569,6577,6584,6592,6632,6640,6647,6655,6696,6726,6783,6790,6831,6860,6915,6922,6963,6983,7022,7029,7037,7069,7081,7122,7133,7174,7186,7227,7234],{"type":992,"tag":1026,"props":5837,"children":5838},{"class":1028,"line":12},[5839,5843],{"type":992,"tag":1026,"props":5840,"children":5841},{"style":1032},[5842],{"type":998,"value":1035},{"type":992,"tag":1026,"props":5844,"children":5845},{"style":1038},[5846],{"type":998,"value":1041},{"type":992,"tag":1026,"props":5848,"children":5849},{"class":1028,"line":27},[5850,5854],{"type":992,"tag":1026,"props":5851,"children":5852},{"style":1032},[5853],{"type":998,"value":1035},{"type":992,"tag":1026,"props":5855,"children":5856},{"style":1038},[5857],{"type":998,"value":2348},{"type":992,"tag":1026,"props":5859,"children":5860},{"class":1028,"line":36},[5861],{"type":992,"tag":1026,"props":5862,"children":5863},{"emptyLinePlaceholder":13},[5864],{"type":998,"value":1049},{"type":992,"tag":1026,"props":5866,"children":5867},{"class":1028,"line":45},[5868],{"type":992,"tag":1026,"props":5869,"children":5870},{"style":1055},[5871],{"type":998,"value":5872},"# 🧹 File Maintenance Demo\n",{"type":992,"tag":1026,"props":5874,"children":5875},{"class":1028,"line":54},[5876],{"type":992,"tag":1026,"props":5877,"children":5878},{"emptyLinePlaceholder":13},[5879],{"type":998,"value":1049},{"type":992,"tag":1026,"props":5881,"children":5882},{"class":1028,"line":63},[5883,5887,5892],{"type":992,"tag":1026,"props":5884,"children":5885},{"style":1032},[5886],{"type":998,"value":2378},{"type":992,"tag":1026,"props":5888,"children":5889},{"style":2381},[5890],{"type":998,"value":5891}," file_maintenance",{"type":992,"tag":1026,"props":5893,"children":5894},{"style":1038},[5895],{"type":998,"value":2389},{"type":992,"tag":1026,"props":5897,"children":5898},{"class":1028,"line":72},[5899,5903,5907,5912],{"type":992,"tag":1026,"props":5900,"children":5901},{"style":1079},[5902],{"type":998,"value":1560},{"type":992,"tag":1026,"props":5904,"children":5905},{"style":1038},[5906],{"type":998,"value":1087},{"type":992,"tag":1026,"props":5908,"children":5909},{"style":1090},[5910],{"type":998,"value":5911},"\"🧹 File maintenance demo:\"",{"type":992,"tag":1026,"props":5913,"children":5914},{"style":1038},[5915],{"type":998,"value":1098},{"type":992,"tag":1026,"props":5917,"children":5918},{"class":1028,"line":81},[5919],{"type":992,"tag":1026,"props":5920,"children":5921},{"style":1038},[5922],{"type":998,"value":1552},{"type":992,"tag":1026,"props":5924,"children":5925},{"class":1028,"line":91},[5926],{"type":992,"tag":1026,"props":5927,"children":5928},{"style":1055},[5929],{"type":998,"value":5930},"    # Create some old and new files for demo\n",{"type":992,"tag":1026,"props":5932,"children":5933},{"class":1028,"line":100},[5934,5938,5942,5946,5951,5955,5960,5964,5969],{"type":992,"tag":1026,"props":5935,"children":5936},{"style":1038},[5937],{"type":998,"value":2405},{"type":992,"tag":1026,"props":5939,"children":5940},{"style":1032},[5941],{"type":998,"value":1111},{"type":992,"tag":1026,"props":5943,"children":5944},{"style":1038},[5945],{"type":998,"value":1116},{"type":992,"tag":1026,"props":5947,"children":5948},{"style":1090},[5949],{"type":998,"value":5950},"\"old_log.txt\"",{"type":992,"tag":1026,"props":5952,"children":5953},{"style":1038},[5954],{"type":998,"value":1126},{"type":992,"tag":1026,"props":5956,"children":5957},{"style":1090},[5958],{"type":998,"value":5959},"\"recent_data.csv\"",{"type":992,"tag":1026,"props":5961,"children":5962},{"style":1038},[5963],{"type":998,"value":1126},{"type":992,"tag":1026,"props":5965,"children":5966},{"style":1090},[5967],{"type":998,"value":5968},"\"temp_file.tmp\"",{"type":992,"tag":1026,"props":5970,"children":5971},{"style":1038},[5972],{"type":998,"value":1145},{"type":992,"tag":1026,"props":5974,"children":5975},{"class":1028,"line":109},[5976],{"type":992,"tag":1026,"props":5977,"children":5978},{"style":1038},[5979],{"type":998,"value":1552},{"type":992,"tag":1026,"props":5981,"children":5982},{"class":1028,"line":118},[5983,5987,5992,5996,6001],{"type":992,"tag":1026,"props":5984,"children":5985},{"style":1032},[5986],{"type":998,"value":2537},{"type":992,"tag":1026,"props":5988,"children":5989},{"style":1038},[5990],{"type":998,"value":5991}," i, filename ",{"type":992,"tag":1026,"props":5993,"children":5994},{"style":1032},[5995],{"type":998,"value":1170},{"type":992,"tag":1026,"props":5997,"children":5998},{"style":1079},[5999],{"type":998,"value":6000}," enumerate",{"type":992,"tag":1026,"props":6002,"children":6003},{"style":1038},[6004],{"type":998,"value":6005},"(test_files):\n",{"type":992,"tag":1026,"props":6007,"children":6008},{"class":1028,"line":127},[6009,6013,6017,6021,6025,6029,6033,6037],{"type":992,"tag":1026,"props":6010,"children":6011},{"style":1032},[6012],{"type":998,"value":2559},{"type":992,"tag":1026,"props":6014,"children":6015},{"style":1079},[6016],{"type":998,"value":1316},{"type":992,"tag":1026,"props":6018,"children":6019},{"style":1038},[6020],{"type":998,"value":2568},{"type":992,"tag":1026,"props":6022,"children":6023},{"style":1090},[6024],{"type":998,"value":1334},{"type":992,"tag":1026,"props":6026,"children":6027},{"style":1038},[6028],{"type":998,"value":1339},{"type":992,"tag":1026,"props":6030,"children":6031},{"style":1032},[6032],{"type":998,"value":1344},{"type":992,"tag":1026,"props":6034,"children":6035},{"style":1347},[6036],{"type":998,"value":1350},{"type":992,"tag":1026,"props":6038,"children":6039},{"style":1038},[6040],{"type":998,"value":1247},{"type":992,"tag":1026,"props":6042,"children":6043},{"class":1028,"line":136},[6044,6048,6052,6056,6061,6065,6069,6073,6077],{"type":992,"tag":1026,"props":6045,"children":6046},{"style":1347},[6047],{"type":998,"value":2596},{"type":992,"tag":1026,"props":6049,"children":6050},{"style":1038},[6051],{"type":998,"value":1367},{"type":992,"tag":1026,"props":6053,"children":6054},{"style":1032},[6055],{"type":998,"value":1205},{"type":992,"tag":1026,"props":6057,"children":6058},{"style":1090},[6059],{"type":998,"value":6060},"\"Content for ",{"type":992,"tag":1026,"props":6062,"children":6063},{"style":1079},[6064],{"type":998,"value":1215},{"type":992,"tag":1026,"props":6066,"children":6067},{"style":1038},[6068],{"type":998,"value":1220},{"type":992,"tag":1026,"props":6070,"children":6071},{"style":1079},[6072],{"type":998,"value":1225},{"type":992,"tag":1026,"props":6074,"children":6075},{"style":1090},[6076],{"type":998,"value":1382},{"type":992,"tag":1026,"props":6078,"children":6079},{"style":1038},[6080],{"type":998,"value":1098},{"type":992,"tag":1026,"props":6082,"children":6083},{"class":1028,"line":146},[6084],{"type":992,"tag":1026,"props":6085,"children":6086},{"style":1038},[6087],{"type":998,"value":3754},{"type":992,"tag":1026,"props":6089,"children":6090},{"class":1028,"line":155},[6091],{"type":992,"tag":1026,"props":6092,"children":6093},{"style":1055},[6094],{"type":998,"value":6095},"        # Make some files appear \"older\"\n",{"type":992,"tag":1026,"props":6097,"children":6098},{"class":1028,"line":164},[6099,6103,6108,6112,6116,6121,6126,6130],{"type":992,"tag":1026,"props":6100,"children":6101},{"style":1032},[6102],{"type":998,"value":2740},{"type":992,"tag":1026,"props":6104,"children":6105},{"style":1090},[6106],{"type":998,"value":6107}," \"old\"",{"type":992,"tag":1026,"props":6109,"children":6110},{"style":1032},[6111],{"type":998,"value":3813},{"type":992,"tag":1026,"props":6113,"children":6114},{"style":1038},[6115],{"type":998,"value":1165},{"type":992,"tag":1026,"props":6117,"children":6118},{"style":1032},[6119],{"type":998,"value":6120},"or",{"type":992,"tag":1026,"props":6122,"children":6123},{"style":1090},[6124],{"type":998,"value":6125}," \"temp\"",{"type":992,"tag":1026,"props":6127,"children":6128},{"style":1032},[6129],{"type":998,"value":3813},{"type":992,"tag":1026,"props":6131,"children":6132},{"style":1038},[6133],{"type":998,"value":6134}," filename:\n",{"type":992,"tag":1026,"props":6136,"children":6137},{"class":1028,"line":173},[6138],{"type":992,"tag":1026,"props":6139,"children":6140},{"style":1055},[6141],{"type":998,"value":6142},"            # Set modification time to 30 days ago\n",{"type":992,"tag":1026,"props":6144,"children":6145},{"class":1028,"line":182},[6146,6151,6155,6160,6165,6169,6174,6178,6183,6187,6192,6196,6200],{"type":992,"tag":1026,"props":6147,"children":6148},{"style":1038},[6149],{"type":998,"value":6150},"            old_time ",{"type":992,"tag":1026,"props":6152,"children":6153},{"style":1032},[6154],{"type":998,"value":1111},{"type":992,"tag":1026,"props":6156,"children":6157},{"style":1038},[6158],{"type":998,"value":6159}," time.time() ",{"type":992,"tag":1026,"props":6161,"children":6162},{"style":1032},[6163],{"type":998,"value":6164},"-",{"type":992,"tag":1026,"props":6166,"children":6167},{"style":1038},[6168],{"type":998,"value":3895},{"type":992,"tag":1026,"props":6170,"children":6171},{"style":1079},[6172],{"type":998,"value":6173},"30",{"type":992,"tag":1026,"props":6175,"children":6176},{"style":1032},[6177],{"type":998,"value":2459},{"type":992,"tag":1026,"props":6179,"children":6180},{"style":1079},[6181],{"type":998,"value":6182}," 24",{"type":992,"tag":1026,"props":6184,"children":6185},{"style":1032},[6186],{"type":998,"value":2459},{"type":992,"tag":1026,"props":6188,"children":6189},{"style":1079},[6190],{"type":998,"value":6191}," 60",{"type":992,"tag":1026,"props":6193,"children":6194},{"style":1032},[6195],{"type":998,"value":2459},{"type":992,"tag":1026,"props":6197,"children":6198},{"style":1079},[6199],{"type":998,"value":6191},{"type":992,"tag":1026,"props":6201,"children":6202},{"style":1038},[6203],{"type":998,"value":1098},{"type":992,"tag":1026,"props":6205,"children":6206},{"class":1028,"line":191},[6207],{"type":992,"tag":1026,"props":6208,"children":6209},{"style":1038},[6210],{"type":998,"value":6211},"            os.utime(filename, (old_time, old_time))\n",{"type":992,"tag":1026,"props":6213,"children":6214},{"class":1028,"line":201},[6215],{"type":992,"tag":1026,"props":6216,"children":6217},{"style":1038},[6218],{"type":998,"value":1552},{"type":992,"tag":1026,"props":6220,"children":6221},{"class":1028,"line":210},[6222,6226,6230,6235],{"type":992,"tag":1026,"props":6223,"children":6224},{"style":1079},[6225],{"type":998,"value":1560},{"type":992,"tag":1026,"props":6227,"children":6228},{"style":1038},[6229],{"type":998,"value":1087},{"type":992,"tag":1026,"props":6231,"children":6232},{"style":1090},[6233],{"type":998,"value":6234},"\"   📄 Created test files with different ages\"",{"type":992,"tag":1026,"props":6236,"children":6237},{"style":1038},[6238],{"type":998,"value":1098},{"type":992,"tag":1026,"props":6240,"children":6241},{"class":1028,"line":219},[6242],{"type":992,"tag":1026,"props":6243,"children":6244},{"style":1038},[6245],{"type":998,"value":1552},{"type":992,"tag":1026,"props":6247,"children":6248},{"class":1028,"line":228},[6249],{"type":992,"tag":1026,"props":6250,"children":6251},{"style":1055},[6252],{"type":998,"value":6253},"    # File maintenance analysis\n",{"type":992,"tag":1026,"props":6255,"children":6256},{"class":1028,"line":238},[6257,6261,6265,6269,6273,6277,6282],{"type":992,"tag":1026,"props":6258,"children":6259},{"style":1079},[6260],{"type":998,"value":1560},{"type":992,"tag":1026,"props":6262,"children":6263},{"style":1038},[6264],{"type":998,"value":1087},{"type":992,"tag":1026,"props":6266,"children":6267},{"style":1032},[6268],{"type":998,"value":1205},{"type":992,"tag":1026,"props":6270,"children":6271},{"style":1090},[6272],{"type":998,"value":1382},{"type":992,"tag":1026,"props":6274,"children":6275},{"style":1079},[6276],{"type":998,"value":1377},{"type":992,"tag":1026,"props":6278,"children":6279},{"style":1090},[6280],{"type":998,"value":6281},"📊 File analysis:\"",{"type":992,"tag":1026,"props":6283,"children":6284},{"style":1038},[6285],{"type":998,"value":1098},{"type":992,"tag":1026,"props":6287,"children":6288},{"class":1028,"line":247},[6289,6294,6298],{"type":992,"tag":1026,"props":6290,"children":6291},{"style":1038},[6292],{"type":998,"value":6293},"    current_time ",{"type":992,"tag":1026,"props":6295,"children":6296},{"style":1032},[6297],{"type":998,"value":1111},{"type":992,"tag":1026,"props":6299,"children":6300},{"style":1038},[6301],{"type":998,"value":6302}," time.time()\n",{"type":992,"tag":1026,"props":6304,"children":6305},{"class":1028,"line":256},[6306,6311,6315],{"type":992,"tag":1026,"props":6307,"children":6308},{"style":1038},[6309],{"type":998,"value":6310},"    old_files ",{"type":992,"tag":1026,"props":6312,"children":6313},{"style":1032},[6314],{"type":998,"value":1111},{"type":992,"tag":1026,"props":6316,"children":6317},{"style":1038},[6318],{"type":998,"value":6319}," []\n",{"type":992,"tag":1026,"props":6321,"children":6322},{"class":1028,"line":265},[6323,6328,6332],{"type":992,"tag":1026,"props":6324,"children":6325},{"style":1038},[6326],{"type":998,"value":6327},"    large_files ",{"type":992,"tag":1026,"props":6329,"children":6330},{"style":1032},[6331],{"type":998,"value":1111},{"type":992,"tag":1026,"props":6333,"children":6334},{"style":1038},[6335],{"type":998,"value":6319},{"type":992,"tag":1026,"props":6337,"children":6338},{"class":1028,"line":274},[6339,6344,6348],{"type":992,"tag":1026,"props":6340,"children":6341},{"style":1038},[6342],{"type":998,"value":6343},"    temp_files ",{"type":992,"tag":1026,"props":6345,"children":6346},{"style":1032},[6347],{"type":998,"value":1111},{"type":992,"tag":1026,"props":6349,"children":6350},{"style":1038},[6351],{"type":998,"value":6319},{"type":992,"tag":1026,"props":6353,"children":6354},{"class":1028,"line":284},[6355],{"type":992,"tag":1026,"props":6356,"children":6357},{"style":1038},[6358],{"type":998,"value":1552},{"type":992,"tag":1026,"props":6360,"children":6361},{"class":1028,"line":293},[6362,6366,6370,6374,6378,6382],{"type":992,"tag":1026,"props":6363,"children":6364},{"style":1032},[6365],{"type":998,"value":2537},{"type":992,"tag":1026,"props":6367,"children":6368},{"style":1038},[6369],{"type":998,"value":1165},{"type":992,"tag":1026,"props":6371,"children":6372},{"style":1032},[6373],{"type":998,"value":1170},{"type":992,"tag":1026,"props":6375,"children":6376},{"style":1038},[6377],{"type":998,"value":1781},{"type":992,"tag":1026,"props":6379,"children":6380},{"style":1090},[6381],{"type":998,"value":1786},{"type":992,"tag":1026,"props":6383,"children":6384},{"style":1038},[6385],{"type":998,"value":1791},{"type":992,"tag":1026,"props":6387,"children":6388},{"class":1028,"line":302},[6389,6393],{"type":992,"tag":1026,"props":6390,"children":6391},{"style":1032},[6392],{"type":998,"value":2740},{"type":992,"tag":1026,"props":6394,"children":6395},{"style":1038},[6396],{"type":998,"value":6397}," os.path.isfile(filename):\n",{"type":992,"tag":1026,"props":6399,"children":6400},{"class":1028,"line":311},[6401,6405,6409],{"type":992,"tag":1026,"props":6402,"children":6403},{"style":1038},[6404],{"type":998,"value":2760},{"type":992,"tag":1026,"props":6406,"children":6407},{"style":1032},[6408],{"type":998,"value":1111},{"type":992,"tag":1026,"props":6410,"children":6411},{"style":1038},[6412],{"type":998,"value":2769},{"type":992,"tag":1026,"props":6414,"children":6415},{"class":1028,"line":320},[6416],{"type":992,"tag":1026,"props":6417,"children":6418},{"style":1038},[6419],{"type":998,"value":2777},{"type":992,"tag":1026,"props":6421,"children":6422},{"class":1028,"line":329},[6423],{"type":992,"tag":1026,"props":6424,"children":6425},{"style":1055},[6426],{"type":998,"value":6427},"            # Check file age (older than 7 days)\n",{"type":992,"tag":1026,"props":6429,"children":6430},{"class":1028,"line":338},[6431,6436,6440,6445,6449,6454,6458,6462,6467,6471,6475,6479,6483],{"type":992,"tag":1026,"props":6432,"children":6433},{"style":1038},[6434],{"type":998,"value":6435},"            days_old ",{"type":992,"tag":1026,"props":6437,"children":6438},{"style":1032},[6439],{"type":998,"value":1111},{"type":992,"tag":1026,"props":6441,"children":6442},{"style":1038},[6443],{"type":998,"value":6444}," (current_time ",{"type":992,"tag":1026,"props":6446,"children":6447},{"style":1032},[6448],{"type":998,"value":6164},{"type":992,"tag":1026,"props":6450,"children":6451},{"style":1038},[6452],{"type":998,"value":6453}," stats.st_mtime) ",{"type":992,"tag":1026,"props":6455,"children":6456},{"style":1032},[6457],{"type":998,"value":2959},{"type":992,"tag":1026,"props":6459,"children":6460},{"style":1038},[6461],{"type":998,"value":3895},{"type":992,"tag":1026,"props":6463,"children":6464},{"style":1079},[6465],{"type":998,"value":6466},"24",{"type":992,"tag":1026,"props":6468,"children":6469},{"style":1032},[6470],{"type":998,"value":2459},{"type":992,"tag":1026,"props":6472,"children":6473},{"style":1079},[6474],{"type":998,"value":6191},{"type":992,"tag":1026,"props":6476,"children":6477},{"style":1032},[6478],{"type":998,"value":2459},{"type":992,"tag":1026,"props":6480,"children":6481},{"style":1079},[6482],{"type":998,"value":6191},{"type":992,"tag":1026,"props":6484,"children":6485},{"style":1038},[6486],{"type":998,"value":1098},{"type":992,"tag":1026,"props":6488,"children":6489},{"class":1028,"line":347},[6490,6494,6499,6503,6508],{"type":992,"tag":1026,"props":6491,"children":6492},{"style":1032},[6493],{"type":998,"value":2907},{"type":992,"tag":1026,"props":6495,"children":6496},{"style":1038},[6497],{"type":998,"value":6498}," days_old ",{"type":992,"tag":1026,"props":6500,"children":6501},{"style":1032},[6502],{"type":998,"value":2917},{"type":992,"tag":1026,"props":6504,"children":6505},{"style":1079},[6506],{"type":998,"value":6507}," 7",{"type":992,"tag":1026,"props":6509,"children":6510},{"style":1038},[6511],{"type":998,"value":1247},{"type":992,"tag":1026,"props":6513,"children":6514},{"class":1028,"line":356},[6515,6520,6525],{"type":992,"tag":1026,"props":6516,"children":6517},{"style":1038},[6518],{"type":998,"value":6519},"                old_files.append((filename, ",{"type":992,"tag":1026,"props":6521,"children":6522},{"style":1079},[6523],{"type":998,"value":6524},"int",{"type":992,"tag":1026,"props":6526,"children":6527},{"style":1038},[6528],{"type":998,"value":6529},"(days_old)))\n",{"type":992,"tag":1026,"props":6531,"children":6532},{"class":1028,"line":365},[6533],{"type":992,"tag":1026,"props":6534,"children":6535},{"style":1038},[6536],{"type":998,"value":2777},{"type":992,"tag":1026,"props":6538,"children":6539},{"class":1028,"line":374},[6540],{"type":992,"tag":1026,"props":6541,"children":6542},{"style":1055},[6543],{"type":998,"value":6544},"            # Check file size (larger than 1KB)\n",{"type":992,"tag":1026,"props":6546,"children":6547},{"class":1028,"line":384},[6548,6552,6557,6561,6565],{"type":992,"tag":1026,"props":6549,"children":6550},{"style":1032},[6551],{"type":998,"value":2907},{"type":992,"tag":1026,"props":6553,"children":6554},{"style":1038},[6555],{"type":998,"value":6556}," stats.st_size ",{"type":992,"tag":1026,"props":6558,"children":6559},{"style":1032},[6560],{"type":998,"value":2917},{"type":992,"tag":1026,"props":6562,"children":6563},{"style":1079},[6564],{"type":998,"value":2922},{"type":992,"tag":1026,"props":6566,"children":6567},{"style":1038},[6568],{"type":998,"value":1247},{"type":992,"tag":1026,"props":6570,"children":6571},{"class":1028,"line":393},[6572],{"type":992,"tag":1026,"props":6573,"children":6574},{"style":1038},[6575],{"type":998,"value":6576},"                large_files.append((filename, stats.st_size))\n",{"type":992,"tag":1026,"props":6578,"children":6579},{"class":1028,"line":402},[6580],{"type":992,"tag":1026,"props":6581,"children":6582},{"style":1038},[6583],{"type":998,"value":2777},{"type":992,"tag":1026,"props":6585,"children":6586},{"class":1028,"line":411},[6587],{"type":992,"tag":1026,"props":6588,"children":6589},{"style":1055},[6590],{"type":998,"value":6591},"            # Check for temporary files\n",{"type":992,"tag":1026,"props":6593,"children":6594},{"class":1028,"line":420},[6595,6599,6604,6609,6613,6618,6622,6627],{"type":992,"tag":1026,"props":6596,"children":6597},{"style":1032},[6598],{"type":998,"value":2907},{"type":992,"tag":1026,"props":6600,"children":6601},{"style":1038},[6602],{"type":998,"value":6603}," filename.endswith((",{"type":992,"tag":1026,"props":6605,"children":6606},{"style":1090},[6607],{"type":998,"value":6608},"'.tmp'",{"type":992,"tag":1026,"props":6610,"children":6611},{"style":1038},[6612],{"type":998,"value":1126},{"type":992,"tag":1026,"props":6614,"children":6615},{"style":1090},[6616],{"type":998,"value":6617},"'.temp'",{"type":992,"tag":1026,"props":6619,"children":6620},{"style":1038},[6621],{"type":998,"value":1126},{"type":992,"tag":1026,"props":6623,"children":6624},{"style":1090},[6625],{"type":998,"value":6626},"'.bak'",{"type":992,"tag":1026,"props":6628,"children":6629},{"style":1038},[6630],{"type":998,"value":6631},")):\n",{"type":992,"tag":1026,"props":6633,"children":6634},{"class":1028,"line":429},[6635],{"type":992,"tag":1026,"props":6636,"children":6637},{"style":1038},[6638],{"type":998,"value":6639},"                temp_files.append(filename)\n",{"type":992,"tag":1026,"props":6641,"children":6642},{"class":1028,"line":438},[6643],{"type":992,"tag":1026,"props":6644,"children":6645},{"style":1038},[6646],{"type":998,"value":1552},{"type":992,"tag":1026,"props":6648,"children":6649},{"class":1028,"line":447},[6650],{"type":992,"tag":1026,"props":6651,"children":6652},{"style":1055},[6653],{"type":998,"value":6654},"    # Report findings\n",{"type":992,"tag":1026,"props":6656,"children":6657},{"class":1028,"line":457},[6658,6662,6666,6670,6675,6679,6684,6688,6692],{"type":992,"tag":1026,"props":6659,"children":6660},{"style":1079},[6661],{"type":998,"value":1560},{"type":992,"tag":1026,"props":6663,"children":6664},{"style":1038},[6665],{"type":998,"value":1087},{"type":992,"tag":1026,"props":6667,"children":6668},{"style":1032},[6669],{"type":998,"value":1205},{"type":992,"tag":1026,"props":6671,"children":6672},{"style":1090},[6673],{"type":998,"value":6674},"\"   📅 Old files (>7 days): ",{"type":992,"tag":1026,"props":6676,"children":6677},{"style":1079},[6678],{"type":998,"value":3779},{"type":992,"tag":1026,"props":6680,"children":6681},{"style":1038},[6682],{"type":998,"value":6683},"(old_files)",{"type":992,"tag":1026,"props":6685,"children":6686},{"style":1079},[6687],{"type":998,"value":1225},{"type":992,"tag":1026,"props":6689,"children":6690},{"style":1090},[6691],{"type":998,"value":1382},{"type":992,"tag":1026,"props":6693,"children":6694},{"style":1038},[6695],{"type":998,"value":1098},{"type":992,"tag":1026,"props":6697,"children":6698},{"class":1028,"line":466},[6699,6703,6708,6712,6717,6722],{"type":992,"tag":1026,"props":6700,"children":6701},{"style":1032},[6702],{"type":998,"value":2537},{"type":992,"tag":1026,"props":6704,"children":6705},{"style":1038},[6706],{"type":998,"value":6707}," filename, age ",{"type":992,"tag":1026,"props":6709,"children":6710},{"style":1032},[6711],{"type":998,"value":1170},{"type":992,"tag":1026,"props":6713,"children":6714},{"style":1038},[6715],{"type":998,"value":6716}," old_files[:",{"type":992,"tag":1026,"props":6718,"children":6719},{"style":1079},[6720],{"type":998,"value":6721},"3",{"type":992,"tag":1026,"props":6723,"children":6724},{"style":1038},[6725],{"type":998,"value":4183},{"type":992,"tag":1026,"props":6727,"children":6728},{"class":1028,"line":475},[6729,6733,6737,6741,6745,6749,6753,6757,6761,6765,6770,6774,6779],{"type":992,"tag":1026,"props":6730,"children":6731},{"style":1079},[6732],{"type":998,"value":1196},{"type":992,"tag":1026,"props":6734,"children":6735},{"style":1038},[6736],{"type":998,"value":1087},{"type":992,"tag":1026,"props":6738,"children":6739},{"style":1032},[6740],{"type":998,"value":1205},{"type":992,"tag":1026,"props":6742,"children":6743},{"style":1090},[6744],{"type":998,"value":3878},{"type":992,"tag":1026,"props":6746,"children":6747},{"style":1079},[6748],{"type":998,"value":1215},{"type":992,"tag":1026,"props":6750,"children":6751},{"style":1038},[6752],{"type":998,"value":1220},{"type":992,"tag":1026,"props":6754,"children":6755},{"style":1079},[6756],{"type":998,"value":1225},{"type":992,"tag":1026,"props":6758,"children":6759},{"style":1090},[6760],{"type":998,"value":3895},{"type":992,"tag":1026,"props":6762,"children":6763},{"style":1079},[6764],{"type":998,"value":1215},{"type":992,"tag":1026,"props":6766,"children":6767},{"style":1038},[6768],{"type":998,"value":6769},"age",{"type":992,"tag":1026,"props":6771,"children":6772},{"style":1079},[6773],{"type":998,"value":1225},{"type":992,"tag":1026,"props":6775,"children":6776},{"style":1090},[6777],{"type":998,"value":6778}," days old)\"",{"type":992,"tag":1026,"props":6780,"children":6781},{"style":1038},[6782],{"type":998,"value":1098},{"type":992,"tag":1026,"props":6784,"children":6785},{"class":1028,"line":484},[6786],{"type":992,"tag":1026,"props":6787,"children":6788},{"style":1038},[6789],{"type":998,"value":1552},{"type":992,"tag":1026,"props":6791,"children":6792},{"class":1028,"line":493},[6793,6797,6801,6805,6810,6814,6819,6823,6827],{"type":992,"tag":1026,"props":6794,"children":6795},{"style":1079},[6796],{"type":998,"value":1560},{"type":992,"tag":1026,"props":6798,"children":6799},{"style":1038},[6800],{"type":998,"value":1087},{"type":992,"tag":1026,"props":6802,"children":6803},{"style":1032},[6804],{"type":998,"value":1205},{"type":992,"tag":1026,"props":6806,"children":6807},{"style":1090},[6808],{"type":998,"value":6809},"\"   📦 Large files (>1KB): ",{"type":992,"tag":1026,"props":6811,"children":6812},{"style":1079},[6813],{"type":998,"value":3779},{"type":992,"tag":1026,"props":6815,"children":6816},{"style":1038},[6817],{"type":998,"value":6818},"(large_files)",{"type":992,"tag":1026,"props":6820,"children":6821},{"style":1079},[6822],{"type":998,"value":1225},{"type":992,"tag":1026,"props":6824,"children":6825},{"style":1090},[6826],{"type":998,"value":1382},{"type":992,"tag":1026,"props":6828,"children":6829},{"style":1038},[6830],{"type":998,"value":1098},{"type":992,"tag":1026,"props":6832,"children":6833},{"class":1028,"line":502},[6834,6838,6843,6847,6852,6856],{"type":992,"tag":1026,"props":6835,"children":6836},{"style":1032},[6837],{"type":998,"value":2537},{"type":992,"tag":1026,"props":6839,"children":6840},{"style":1038},[6841],{"type":998,"value":6842}," filename, size ",{"type":992,"tag":1026,"props":6844,"children":6845},{"style":1032},[6846],{"type":998,"value":1170},{"type":992,"tag":1026,"props":6848,"children":6849},{"style":1038},[6850],{"type":998,"value":6851}," large_files[:",{"type":992,"tag":1026,"props":6853,"children":6854},{"style":1079},[6855],{"type":998,"value":6721},{"type":992,"tag":1026,"props":6857,"children":6858},{"style":1038},[6859],{"type":998,"value":4183},{"type":992,"tag":1026,"props":6861,"children":6862},{"class":1028,"line":511},[6863,6867,6871,6875,6879,6883,6887,6891,6895,6899,6903,6907,6911],{"type":992,"tag":1026,"props":6864,"children":6865},{"style":1079},[6866],{"type":998,"value":1196},{"type":992,"tag":1026,"props":6868,"children":6869},{"style":1038},[6870],{"type":998,"value":1087},{"type":992,"tag":1026,"props":6872,"children":6873},{"style":1032},[6874],{"type":998,"value":1205},{"type":992,"tag":1026,"props":6876,"children":6877},{"style":1090},[6878],{"type":998,"value":3878},{"type":992,"tag":1026,"props":6880,"children":6881},{"style":1079},[6882],{"type":998,"value":1215},{"type":992,"tag":1026,"props":6884,"children":6885},{"style":1038},[6886],{"type":998,"value":1220},{"type":992,"tag":1026,"props":6888,"children":6889},{"style":1079},[6890],{"type":998,"value":1225},{"type":992,"tag":1026,"props":6892,"children":6893},{"style":1090},[6894],{"type":998,"value":3895},{"type":992,"tag":1026,"props":6896,"children":6897},{"style":1079},[6898],{"type":998,"value":1215},{"type":992,"tag":1026,"props":6900,"children":6901},{"style":1038},[6902],{"type":998,"value":1622},{"type":992,"tag":1026,"props":6904,"children":6905},{"style":1079},[6906],{"type":998,"value":1225},{"type":992,"tag":1026,"props":6908,"children":6909},{"style":1090},[6910],{"type":998,"value":3912},{"type":992,"tag":1026,"props":6912,"children":6913},{"style":1038},[6914],{"type":998,"value":1098},{"type":992,"tag":1026,"props":6916,"children":6917},{"class":1028,"line":520},[6918],{"type":992,"tag":1026,"props":6919,"children":6920},{"style":1038},[6921],{"type":998,"value":1552},{"type":992,"tag":1026,"props":6923,"children":6924},{"class":1028,"line":530},[6925,6929,6933,6937,6942,6946,6951,6955,6959],{"type":992,"tag":1026,"props":6926,"children":6927},{"style":1079},[6928],{"type":998,"value":1560},{"type":992,"tag":1026,"props":6930,"children":6931},{"style":1038},[6932],{"type":998,"value":1087},{"type":992,"tag":1026,"props":6934,"children":6935},{"style":1032},[6936],{"type":998,"value":1205},{"type":992,"tag":1026,"props":6938,"children":6939},{"style":1090},[6940],{"type":998,"value":6941},"\"   🗑️ Temporary files: ",{"type":992,"tag":1026,"props":6943,"children":6944},{"style":1079},[6945],{"type":998,"value":3779},{"type":992,"tag":1026,"props":6947,"children":6948},{"style":1038},[6949],{"type":998,"value":6950},"(temp_files)",{"type":992,"tag":1026,"props":6952,"children":6953},{"style":1079},[6954],{"type":998,"value":1225},{"type":992,"tag":1026,"props":6956,"children":6957},{"style":1090},[6958],{"type":998,"value":1382},{"type":992,"tag":1026,"props":6960,"children":6961},{"style":1038},[6962],{"type":998,"value":1098},{"type":992,"tag":1026,"props":6964,"children":6965},{"class":1028,"line":539},[6966,6970,6974,6978],{"type":992,"tag":1026,"props":6967,"children":6968},{"style":1032},[6969],{"type":998,"value":2537},{"type":992,"tag":1026,"props":6971,"children":6972},{"style":1038},[6973],{"type":998,"value":1165},{"type":992,"tag":1026,"props":6975,"children":6976},{"style":1032},[6977],{"type":998,"value":1170},{"type":992,"tag":1026,"props":6979,"children":6980},{"style":1038},[6981],{"type":998,"value":6982}," temp_files:\n",{"type":992,"tag":1026,"props":6984,"children":6985},{"class":1028,"line":548},[6986,6990,6994,6998,7002,7006,7010,7014,7018],{"type":992,"tag":1026,"props":6987,"children":6988},{"style":1079},[6989],{"type":998,"value":1196},{"type":992,"tag":1026,"props":6991,"children":6992},{"style":1038},[6993],{"type":998,"value":1087},{"type":992,"tag":1026,"props":6995,"children":6996},{"style":1032},[6997],{"type":998,"value":1205},{"type":992,"tag":1026,"props":6999,"children":7000},{"style":1090},[7001],{"type":998,"value":3878},{"type":992,"tag":1026,"props":7003,"children":7004},{"style":1079},[7005],{"type":998,"value":1215},{"type":992,"tag":1026,"props":7007,"children":7008},{"style":1038},[7009],{"type":998,"value":1220},{"type":992,"tag":1026,"props":7011,"children":7012},{"style":1079},[7013],{"type":998,"value":1225},{"type":992,"tag":1026,"props":7015,"children":7016},{"style":1090},[7017],{"type":998,"value":1382},{"type":992,"tag":1026,"props":7019,"children":7020},{"style":1038},[7021],{"type":998,"value":1098},{"type":992,"tag":1026,"props":7023,"children":7024},{"class":1028,"line":557},[7025],{"type":992,"tag":1026,"props":7026,"children":7027},{"style":1038},[7028],{"type":998,"value":1552},{"type":992,"tag":1026,"props":7030,"children":7031},{"class":1028,"line":566},[7032],{"type":992,"tag":1026,"props":7033,"children":7034},{"style":1055},[7035],{"type":998,"value":7036},"    # Cleanup suggestions (simulation mode)\n",{"type":992,"tag":1026,"props":7038,"children":7039},{"class":1028,"line":575},[7040,7044,7048,7052,7056,7060,7065],{"type":992,"tag":1026,"props":7041,"children":7042},{"style":1079},[7043],{"type":998,"value":1560},{"type":992,"tag":1026,"props":7045,"children":7046},{"style":1038},[7047],{"type":998,"value":1087},{"type":992,"tag":1026,"props":7049,"children":7050},{"style":1032},[7051],{"type":998,"value":1205},{"type":992,"tag":1026,"props":7053,"children":7054},{"style":1090},[7055],{"type":998,"value":1382},{"type":992,"tag":1026,"props":7057,"children":7058},{"style":1079},[7059],{"type":998,"value":1377},{"type":992,"tag":1026,"props":7061,"children":7062},{"style":1090},[7063],{"type":998,"value":7064},"💡 Cleanup suggestions:\"",{"type":992,"tag":1026,"props":7066,"children":7067},{"style":1038},[7068],{"type":998,"value":1098},{"type":992,"tag":1026,"props":7070,"children":7071},{"class":1028,"line":584},[7072,7076],{"type":992,"tag":1026,"props":7073,"children":7074},{"style":1032},[7075],{"type":998,"value":1183},{"type":992,"tag":1026,"props":7077,"children":7078},{"style":1038},[7079],{"type":998,"value":7080}," old_files:\n",{"type":992,"tag":1026,"props":7082,"children":7083},{"class":1028,"line":593},[7084,7088,7092,7096,7101,7105,7109,7113,7118],{"type":992,"tag":1026,"props":7085,"children":7086},{"style":1079},[7087],{"type":998,"value":1196},{"type":992,"tag":1026,"props":7089,"children":7090},{"style":1038},[7091],{"type":998,"value":1087},{"type":992,"tag":1026,"props":7093,"children":7094},{"style":1032},[7095],{"type":998,"value":1205},{"type":992,"tag":1026,"props":7097,"children":7098},{"style":1090},[7099],{"type":998,"value":7100},"\"   Consider archiving ",{"type":992,"tag":1026,"props":7102,"children":7103},{"style":1079},[7104],{"type":998,"value":3779},{"type":992,"tag":1026,"props":7106,"children":7107},{"style":1038},[7108],{"type":998,"value":6683},{"type":992,"tag":1026,"props":7110,"children":7111},{"style":1079},[7112],{"type":998,"value":1225},{"type":992,"tag":1026,"props":7114,"children":7115},{"style":1090},[7116],{"type":998,"value":7117}," old files\"",{"type":992,"tag":1026,"props":7119,"children":7120},{"style":1038},[7121],{"type":998,"value":1098},{"type":992,"tag":1026,"props":7123,"children":7124},{"class":1028,"line":602},[7125,7129],{"type":992,"tag":1026,"props":7126,"children":7127},{"style":1032},[7128],{"type":998,"value":1183},{"type":992,"tag":1026,"props":7130,"children":7131},{"style":1038},[7132],{"type":998,"value":6982},{"type":992,"tag":1026,"props":7134,"children":7135},{"class":1028,"line":611},[7136,7140,7144,7148,7153,7157,7161,7165,7170],{"type":992,"tag":1026,"props":7137,"children":7138},{"style":1079},[7139],{"type":998,"value":1196},{"type":992,"tag":1026,"props":7141,"children":7142},{"style":1038},[7143],{"type":998,"value":1087},{"type":992,"tag":1026,"props":7145,"children":7146},{"style":1032},[7147],{"type":998,"value":1205},{"type":992,"tag":1026,"props":7149,"children":7150},{"style":1090},[7151],{"type":998,"value":7152},"\"   Can safely delete ",{"type":992,"tag":1026,"props":7154,"children":7155},{"style":1079},[7156],{"type":998,"value":3779},{"type":992,"tag":1026,"props":7158,"children":7159},{"style":1038},[7160],{"type":998,"value":6950},{"type":992,"tag":1026,"props":7162,"children":7163},{"style":1079},[7164],{"type":998,"value":1225},{"type":992,"tag":1026,"props":7166,"children":7167},{"style":1090},[7168],{"type":998,"value":7169}," temporary files\"",{"type":992,"tag":1026,"props":7171,"children":7172},{"style":1038},[7173],{"type":998,"value":1098},{"type":992,"tag":1026,"props":7175,"children":7176},{"class":1028,"line":621},[7177,7181],{"type":992,"tag":1026,"props":7178,"children":7179},{"style":1032},[7180],{"type":998,"value":1183},{"type":992,"tag":1026,"props":7182,"children":7183},{"style":1038},[7184],{"type":998,"value":7185}," large_files:\n",{"type":992,"tag":1026,"props":7187,"children":7188},{"class":1028,"line":630},[7189,7193,7197,7201,7206,7210,7214,7218,7223],{"type":992,"tag":1026,"props":7190,"children":7191},{"style":1079},[7192],{"type":998,"value":1196},{"type":992,"tag":1026,"props":7194,"children":7195},{"style":1038},[7196],{"type":998,"value":1087},{"type":992,"tag":1026,"props":7198,"children":7199},{"style":1032},[7200],{"type":998,"value":1205},{"type":992,"tag":1026,"props":7202,"children":7203},{"style":1090},[7204],{"type":998,"value":7205},"\"   Review ",{"type":992,"tag":1026,"props":7207,"children":7208},{"style":1079},[7209],{"type":998,"value":3779},{"type":992,"tag":1026,"props":7211,"children":7212},{"style":1038},[7213],{"type":998,"value":6818},{"type":992,"tag":1026,"props":7215,"children":7216},{"style":1079},[7217],{"type":998,"value":1225},{"type":992,"tag":1026,"props":7219,"children":7220},{"style":1090},[7221],{"type":998,"value":7222}," large files for compression\"",{"type":992,"tag":1026,"props":7224,"children":7225},{"style":1038},[7226],{"type":998,"value":1098},{"type":992,"tag":1026,"props":7228,"children":7229},{"class":1028,"line":639},[7230],{"type":992,"tag":1026,"props":7231,"children":7232},{"emptyLinePlaceholder":13},[7233],{"type":998,"value":1049},{"type":992,"tag":1026,"props":7235,"children":7236},{"class":1028,"line":648},[7237],{"type":992,"tag":1026,"props":7238,"children":7239},{"style":1038},[7240],{"type":998,"value":7241},"file_maintenance()\n",{"type":992,"tag":2004,"props":7243,"children":7245},{"id":7244},"file-management-reference",[7246],{"type":998,"value":7247},"📚 File Management Reference",{"type":992,"tag":1001,"props":7249,"children":7250},{},[7251],{"type":998,"value":7252},"Quick reference for essential file management operations and patterns.",{"type":992,"tag":2016,"props":7254,"children":7257},{"emoji":7255,"title":7256,"type":2020},"📖","File Management Reference",[7258,7266,7481,7489,7621,7629,7806,7814],{"type":992,"tag":1001,"props":7259,"children":7260},{},[7261],{"type":992,"tag":2026,"props":7262,"children":7263},{},[7264],{"type":998,"value":7265},"Checking Files:",{"type":992,"tag":1016,"props":7267,"children":7269},{"className":1018,"code":7268,"language":6,"meta":8,"style":8},"import os\n\n# Check existence and type\nif os.path.exists(\"file.txt\"):\n    if os.path.isfile(\"file.txt\"):\n        print(\"It's a file\")\n    elif os.path.isdir(\"file.txt\"):\n        print(\"It's a directory\")\n\n# Check permissions\nreadable = os.access(\"file.txt\", os.R_OK)\nwritable = os.access(\"file.txt\", os.W_OK)\n",[7270],{"type":992,"tag":1022,"props":7271,"children":7272},{"__ignoreMap":8},[7273,7284,7291,7299,7320,7340,7360,7380,7400,7407,7415,7449],{"type":992,"tag":1026,"props":7274,"children":7275},{"class":1028,"line":12},[7276,7280],{"type":992,"tag":1026,"props":7277,"children":7278},{"style":1032},[7279],{"type":998,"value":1035},{"type":992,"tag":1026,"props":7281,"children":7282},{"style":1038},[7283],{"type":998,"value":1041},{"type":992,"tag":1026,"props":7285,"children":7286},{"class":1028,"line":27},[7287],{"type":992,"tag":1026,"props":7288,"children":7289},{"emptyLinePlaceholder":13},[7290],{"type":998,"value":1049},{"type":992,"tag":1026,"props":7292,"children":7293},{"class":1028,"line":36},[7294],{"type":992,"tag":1026,"props":7295,"children":7296},{"style":1055},[7297],{"type":998,"value":7298},"# Check existence and type\n",{"type":992,"tag":1026,"props":7300,"children":7301},{"class":1028,"line":45},[7302,7306,7311,7316],{"type":992,"tag":1026,"props":7303,"children":7304},{"style":1032},[7305],{"type":998,"value":1481},{"type":992,"tag":1026,"props":7307,"children":7308},{"style":1038},[7309],{"type":998,"value":7310}," os.path.exists(",{"type":992,"tag":1026,"props":7312,"children":7313},{"style":1090},[7314],{"type":998,"value":7315},"\"file.txt\"",{"type":992,"tag":1026,"props":7317,"children":7318},{"style":1038},[7319],{"type":998,"value":1791},{"type":992,"tag":1026,"props":7321,"children":7322},{"class":1028,"line":54},[7323,7327,7332,7336],{"type":992,"tag":1026,"props":7324,"children":7325},{"style":1032},[7326],{"type":998,"value":1183},{"type":992,"tag":1026,"props":7328,"children":7329},{"style":1038},[7330],{"type":998,"value":7331}," os.path.isfile(",{"type":992,"tag":1026,"props":7333,"children":7334},{"style":1090},[7335],{"type":998,"value":7315},{"type":992,"tag":1026,"props":7337,"children":7338},{"style":1038},[7339],{"type":998,"value":1791},{"type":992,"tag":1026,"props":7341,"children":7342},{"class":1028,"line":63},[7343,7347,7351,7356],{"type":992,"tag":1026,"props":7344,"children":7345},{"style":1079},[7346],{"type":998,"value":1196},{"type":992,"tag":1026,"props":7348,"children":7349},{"style":1038},[7350],{"type":998,"value":1087},{"type":992,"tag":1026,"props":7352,"children":7353},{"style":1090},[7354],{"type":998,"value":7355},"\"It's a file\"",{"type":992,"tag":1026,"props":7357,"children":7358},{"style":1038},[7359],{"type":998,"value":1098},{"type":992,"tag":1026,"props":7361,"children":7362},{"class":1028,"line":72},[7363,7367,7372,7376],{"type":992,"tag":1026,"props":7364,"children":7365},{"style":1032},[7366],{"type":998,"value":1851},{"type":992,"tag":1026,"props":7368,"children":7369},{"style":1038},[7370],{"type":998,"value":7371}," os.path.isdir(",{"type":992,"tag":1026,"props":7373,"children":7374},{"style":1090},[7375],{"type":998,"value":7315},{"type":992,"tag":1026,"props":7377,"children":7378},{"style":1038},[7379],{"type":998,"value":1791},{"type":992,"tag":1026,"props":7381,"children":7382},{"class":1028,"line":81},[7383,7387,7391,7396],{"type":992,"tag":1026,"props":7384,"children":7385},{"style":1079},[7386],{"type":998,"value":1196},{"type":992,"tag":1026,"props":7388,"children":7389},{"style":1038},[7390],{"type":998,"value":1087},{"type":992,"tag":1026,"props":7392,"children":7393},{"style":1090},[7394],{"type":998,"value":7395},"\"It's a directory\"",{"type":992,"tag":1026,"props":7397,"children":7398},{"style":1038},[7399],{"type":998,"value":1098},{"type":992,"tag":1026,"props":7401,"children":7402},{"class":1028,"line":91},[7403],{"type":992,"tag":1026,"props":7404,"children":7405},{"emptyLinePlaceholder":13},[7406],{"type":998,"value":1049},{"type":992,"tag":1026,"props":7408,"children":7409},{"class":1028,"line":100},[7410],{"type":992,"tag":1026,"props":7411,"children":7412},{"style":1055},[7413],{"type":998,"value":7414},"# Check permissions\n",{"type":992,"tag":1026,"props":7416,"children":7417},{"class":1028,"line":109},[7418,7423,7427,7432,7436,7441,7445],{"type":992,"tag":1026,"props":7419,"children":7420},{"style":1038},[7421],{"type":998,"value":7422},"readable ",{"type":992,"tag":1026,"props":7424,"children":7425},{"style":1032},[7426],{"type":998,"value":1111},{"type":992,"tag":1026,"props":7428,"children":7429},{"style":1038},[7430],{"type":998,"value":7431}," os.access(",{"type":992,"tag":1026,"props":7433,"children":7434},{"style":1090},[7435],{"type":998,"value":7315},{"type":992,"tag":1026,"props":7437,"children":7438},{"style":1038},[7439],{"type":998,"value":7440},", os.",{"type":992,"tag":1026,"props":7442,"children":7443},{"style":1079},[7444],{"type":998,"value":3092},{"type":992,"tag":1026,"props":7446,"children":7447},{"style":1038},[7448],{"type":998,"value":1098},{"type":992,"tag":1026,"props":7450,"children":7451},{"class":1028,"line":118},[7452,7457,7461,7465,7469,7473,7477],{"type":992,"tag":1026,"props":7453,"children":7454},{"style":1038},[7455],{"type":998,"value":7456},"writable ",{"type":992,"tag":1026,"props":7458,"children":7459},{"style":1032},[7460],{"type":998,"value":1111},{"type":992,"tag":1026,"props":7462,"children":7463},{"style":1038},[7464],{"type":998,"value":7431},{"type":992,"tag":1026,"props":7466,"children":7467},{"style":1090},[7468],{"type":998,"value":7315},{"type":992,"tag":1026,"props":7470,"children":7471},{"style":1038},[7472],{"type":998,"value":7440},{"type":992,"tag":1026,"props":7474,"children":7475},{"style":1079},[7476],{"type":998,"value":3117},{"type":992,"tag":1026,"props":7478,"children":7479},{"style":1038},[7480],{"type":998,"value":1098},{"type":992,"tag":1001,"props":7482,"children":7483},{},[7484],{"type":992,"tag":2026,"props":7485,"children":7486},{},[7487],{"type":998,"value":7488},"File Properties:",{"type":992,"tag":1016,"props":7490,"children":7492},{"className":1018,"code":7491,"language":6,"meta":8,"style":8},"# Get file information\nsize = os.path.getsize(\"file.txt\")\nmtime = os.path.getmtime(\"file.txt\")\nstats = os.stat(\"file.txt\")\n\n# Convert timestamps\nimport time\nreadable_time = time.ctime(mtime)\n",[7493],{"type":992,"tag":1022,"props":7494,"children":7495},{"__ignoreMap":8},[7496,7504,7528,7553,7578,7585,7593,7604],{"type":992,"tag":1026,"props":7497,"children":7498},{"class":1028,"line":12},[7499],{"type":992,"tag":1026,"props":7500,"children":7501},{"style":1055},[7502],{"type":998,"value":7503},"# Get file information\n",{"type":992,"tag":1026,"props":7505,"children":7506},{"class":1028,"line":27},[7507,7512,7516,7520,7524],{"type":992,"tag":1026,"props":7508,"children":7509},{"style":1038},[7510],{"type":998,"value":7511},"size ",{"type":992,"tag":1026,"props":7513,"children":7514},{"style":1032},[7515],{"type":998,"value":1111},{"type":992,"tag":1026,"props":7517,"children":7518},{"style":1038},[7519],{"type":998,"value":3849},{"type":992,"tag":1026,"props":7521,"children":7522},{"style":1090},[7523],{"type":998,"value":7315},{"type":992,"tag":1026,"props":7525,"children":7526},{"style":1038},[7527],{"type":998,"value":1098},{"type":992,"tag":1026,"props":7529,"children":7530},{"class":1028,"line":36},[7531,7536,7540,7545,7549],{"type":992,"tag":1026,"props":7532,"children":7533},{"style":1038},[7534],{"type":998,"value":7535},"mtime ",{"type":992,"tag":1026,"props":7537,"children":7538},{"style":1032},[7539],{"type":998,"value":1111},{"type":992,"tag":1026,"props":7541,"children":7542},{"style":1038},[7543],{"type":998,"value":7544}," os.path.getmtime(",{"type":992,"tag":1026,"props":7546,"children":7547},{"style":1090},[7548],{"type":998,"value":7315},{"type":992,"tag":1026,"props":7550,"children":7551},{"style":1038},[7552],{"type":998,"value":1098},{"type":992,"tag":1026,"props":7554,"children":7555},{"class":1028,"line":45},[7556,7561,7565,7570,7574],{"type":992,"tag":1026,"props":7557,"children":7558},{"style":1038},[7559],{"type":998,"value":7560},"stats ",{"type":992,"tag":1026,"props":7562,"children":7563},{"style":1032},[7564],{"type":998,"value":1111},{"type":992,"tag":1026,"props":7566,"children":7567},{"style":1038},[7568],{"type":998,"value":7569}," os.stat(",{"type":992,"tag":1026,"props":7571,"children":7572},{"style":1090},[7573],{"type":998,"value":7315},{"type":992,"tag":1026,"props":7575,"children":7576},{"style":1038},[7577],{"type":998,"value":1098},{"type":992,"tag":1026,"props":7579,"children":7580},{"class":1028,"line":54},[7581],{"type":992,"tag":1026,"props":7582,"children":7583},{"emptyLinePlaceholder":13},[7584],{"type":998,"value":1049},{"type":992,"tag":1026,"props":7586,"children":7587},{"class":1028,"line":63},[7588],{"type":992,"tag":1026,"props":7589,"children":7590},{"style":1055},[7591],{"type":998,"value":7592},"# Convert timestamps\n",{"type":992,"tag":1026,"props":7594,"children":7595},{"class":1028,"line":72},[7596,7600],{"type":992,"tag":1026,"props":7597,"children":7598},{"style":1032},[7599],{"type":998,"value":1035},{"type":992,"tag":1026,"props":7601,"children":7602},{"style":1038},[7603],{"type":998,"value":2348},{"type":992,"tag":1026,"props":7605,"children":7606},{"class":1028,"line":81},[7607,7612,7616],{"type":992,"tag":1026,"props":7608,"children":7609},{"style":1038},[7610],{"type":998,"value":7611},"readable_time ",{"type":992,"tag":1026,"props":7613,"children":7614},{"style":1032},[7615],{"type":998,"value":1111},{"type":992,"tag":1026,"props":7617,"children":7618},{"style":1038},[7619],{"type":998,"value":7620}," time.ctime(mtime)\n",{"type":992,"tag":1001,"props":7622,"children":7623},{},[7624],{"type":992,"tag":2026,"props":7625,"children":7626},{},[7627],{"type":998,"value":7628},"Directory Operations:",{"type":992,"tag":1016,"props":7630,"children":7632},{"className":1018,"code":7631,"language":6,"meta":8,"style":8},"# Create directories\nos.mkdir(\"folder\")                    # Single directory\nos.makedirs(\"path/to/folder\")         # Nested directories\n\n# List contents\nfiles = os.listdir(\".\")               # Current directory\nfor item in files:\n    if os.path.isfile(item):\n        print(f\"File: {item}\")\n",[7633],{"type":992,"tag":1022,"props":7634,"children":7635},{"__ignoreMap":8},[7636,7644,7667,7690,7697,7705,7735,7755,7766],{"type":992,"tag":1026,"props":7637,"children":7638},{"class":1028,"line":12},[7639],{"type":992,"tag":1026,"props":7640,"children":7641},{"style":1055},[7642],{"type":998,"value":7643},"# Create directories\n",{"type":992,"tag":1026,"props":7645,"children":7646},{"class":1028,"line":27},[7647,7652,7657,7662],{"type":992,"tag":1026,"props":7648,"children":7649},{"style":1038},[7650],{"type":998,"value":7651},"os.mkdir(",{"type":992,"tag":1026,"props":7653,"children":7654},{"style":1090},[7655],{"type":998,"value":7656},"\"folder\"",{"type":992,"tag":1026,"props":7658,"children":7659},{"style":1038},[7660],{"type":998,"value":7661},")                    ",{"type":992,"tag":1026,"props":7663,"children":7664},{"style":1055},[7665],{"type":998,"value":7666},"# Single directory\n",{"type":992,"tag":1026,"props":7668,"children":7669},{"class":1028,"line":36},[7670,7675,7680,7685],{"type":992,"tag":1026,"props":7671,"children":7672},{"style":1038},[7673],{"type":998,"value":7674},"os.makedirs(",{"type":992,"tag":1026,"props":7676,"children":7677},{"style":1090},[7678],{"type":998,"value":7679},"\"path/to/folder\"",{"type":992,"tag":1026,"props":7681,"children":7682},{"style":1038},[7683],{"type":998,"value":7684},")         ",{"type":992,"tag":1026,"props":7686,"children":7687},{"style":1055},[7688],{"type":998,"value":7689},"# Nested directories\n",{"type":992,"tag":1026,"props":7691,"children":7692},{"class":1028,"line":45},[7693],{"type":992,"tag":1026,"props":7694,"children":7695},{"emptyLinePlaceholder":13},[7696],{"type":998,"value":1049},{"type":992,"tag":1026,"props":7698,"children":7699},{"class":1028,"line":54},[7700],{"type":992,"tag":1026,"props":7701,"children":7702},{"style":1055},[7703],{"type":998,"value":7704},"# List contents\n",{"type":992,"tag":1026,"props":7706,"children":7707},{"class":1028,"line":63},[7708,7713,7717,7721,7725,7730],{"type":992,"tag":1026,"props":7709,"children":7710},{"style":1038},[7711],{"type":998,"value":7712},"files ",{"type":992,"tag":1026,"props":7714,"children":7715},{"style":1032},[7716],{"type":998,"value":1111},{"type":992,"tag":1026,"props":7718,"children":7719},{"style":1038},[7720],{"type":998,"value":1781},{"type":992,"tag":1026,"props":7722,"children":7723},{"style":1090},[7724],{"type":998,"value":1786},{"type":992,"tag":1026,"props":7726,"children":7727},{"style":1038},[7728],{"type":998,"value":7729},")               ",{"type":992,"tag":1026,"props":7731,"children":7732},{"style":1055},[7733],{"type":998,"value":7734},"# Current directory\n",{"type":992,"tag":1026,"props":7736,"children":7737},{"class":1028,"line":72},[7738,7742,7746,7750],{"type":992,"tag":1026,"props":7739,"children":7740},{"style":1032},[7741],{"type":998,"value":1160},{"type":992,"tag":1026,"props":7743,"children":7744},{"style":1038},[7745],{"type":998,"value":1772},{"type":992,"tag":1026,"props":7747,"children":7748},{"style":1032},[7749],{"type":998,"value":1170},{"type":992,"tag":1026,"props":7751,"children":7752},{"style":1038},[7753],{"type":998,"value":7754}," files:\n",{"type":992,"tag":1026,"props":7756,"children":7757},{"class":1028,"line":81},[7758,7762],{"type":992,"tag":1026,"props":7759,"children":7760},{"style":1032},[7761],{"type":998,"value":1183},{"type":992,"tag":1026,"props":7763,"children":7764},{"style":1038},[7765],{"type":998,"value":1803},{"type":992,"tag":1026,"props":7767,"children":7768},{"class":1028,"line":91},[7769,7773,7777,7781,7786,7790,7794,7798,7802],{"type":992,"tag":1026,"props":7770,"children":7771},{"style":1079},[7772],{"type":998,"value":1196},{"type":992,"tag":1026,"props":7774,"children":7775},{"style":1038},[7776],{"type":998,"value":1087},{"type":992,"tag":1026,"props":7778,"children":7779},{"style":1032},[7780],{"type":998,"value":1205},{"type":992,"tag":1026,"props":7782,"children":7783},{"style":1090},[7784],{"type":998,"value":7785},"\"File: ",{"type":992,"tag":1026,"props":7787,"children":7788},{"style":1079},[7789],{"type":998,"value":1215},{"type":992,"tag":1026,"props":7791,"children":7792},{"style":1038},[7793],{"type":998,"value":1831},{"type":992,"tag":1026,"props":7795,"children":7796},{"style":1079},[7797],{"type":998,"value":1225},{"type":992,"tag":1026,"props":7799,"children":7800},{"style":1090},[7801],{"type":998,"value":1382},{"type":992,"tag":1026,"props":7803,"children":7804},{"style":1038},[7805],{"type":998,"value":1098},{"type":992,"tag":1001,"props":7807,"children":7808},{},[7809],{"type":992,"tag":2026,"props":7810,"children":7811},{},[7812],{"type":998,"value":7813},"File Operations:",{"type":992,"tag":1016,"props":7815,"children":7817},{"className":1018,"code":7816,"language":6,"meta":8,"style":8},"# Rename and move\nos.rename(\"old_name.txt\", \"new_name.txt\")\n\n# Copy and move with shutil\nimport shutil\nshutil.copy(\"source.txt\", \"destination.txt\")\nshutil.move(\"file.txt\", \"folder/file.txt\")\n",[7818],{"type":992,"tag":1022,"props":7819,"children":7820},{"__ignoreMap":8},[7821,7829,7855,7862,7870,7882,7908],{"type":992,"tag":1026,"props":7822,"children":7823},{"class":1028,"line":12},[7824],{"type":992,"tag":1026,"props":7825,"children":7826},{"style":1055},[7827],{"type":998,"value":7828},"# Rename and move\n",{"type":992,"tag":1026,"props":7830,"children":7831},{"class":1028,"line":27},[7832,7837,7842,7846,7851],{"type":992,"tag":1026,"props":7833,"children":7834},{"style":1038},[7835],{"type":998,"value":7836},"os.rename(",{"type":992,"tag":1026,"props":7838,"children":7839},{"style":1090},[7840],{"type":998,"value":7841},"\"old_name.txt\"",{"type":992,"tag":1026,"props":7843,"children":7844},{"style":1038},[7845],{"type":998,"value":1126},{"type":992,"tag":1026,"props":7847,"children":7848},{"style":1090},[7849],{"type":998,"value":7850},"\"new_name.txt\"",{"type":992,"tag":1026,"props":7852,"children":7853},{"style":1038},[7854],{"type":998,"value":1098},{"type":992,"tag":1026,"props":7856,"children":7857},{"class":1028,"line":36},[7858],{"type":992,"tag":1026,"props":7859,"children":7860},{"emptyLinePlaceholder":13},[7861],{"type":998,"value":1049},{"type":992,"tag":1026,"props":7863,"children":7864},{"class":1028,"line":45},[7865],{"type":992,"tag":1026,"props":7866,"children":7867},{"style":1055},[7868],{"type":998,"value":7869},"# Copy and move with shutil\n",{"type":992,"tag":1026,"props":7871,"children":7872},{"class":1028,"line":54},[7873,7877],{"type":992,"tag":1026,"props":7874,"children":7875},{"style":1032},[7876],{"type":998,"value":1035},{"type":992,"tag":1026,"props":7878,"children":7879},{"style":1038},[7880],{"type":998,"value":7881}," shutil\n",{"type":992,"tag":1026,"props":7883,"children":7884},{"class":1028,"line":63},[7885,7890,7895,7899,7904],{"type":992,"tag":1026,"props":7886,"children":7887},{"style":1038},[7888],{"type":998,"value":7889},"shutil.copy(",{"type":992,"tag":1026,"props":7891,"children":7892},{"style":1090},[7893],{"type":998,"value":7894},"\"source.txt\"",{"type":992,"tag":1026,"props":7896,"children":7897},{"style":1038},[7898],{"type":998,"value":1126},{"type":992,"tag":1026,"props":7900,"children":7901},{"style":1090},[7902],{"type":998,"value":7903},"\"destination.txt\"",{"type":992,"tag":1026,"props":7905,"children":7906},{"style":1038},[7907],{"type":998,"value":1098},{"type":992,"tag":1026,"props":7909,"children":7910},{"class":1028,"line":72},[7911,7916,7920,7924,7929],{"type":992,"tag":1026,"props":7912,"children":7913},{"style":1038},[7914],{"type":998,"value":7915},"shutil.move(",{"type":992,"tag":1026,"props":7917,"children":7918},{"style":1090},[7919],{"type":998,"value":7315},{"type":992,"tag":1026,"props":7921,"children":7922},{"style":1038},[7923],{"type":998,"value":1126},{"type":992,"tag":1026,"props":7925,"children":7926},{"style":1090},[7927],{"type":998,"value":7928},"\"folder/file.txt\"",{"type":992,"tag":1026,"props":7930,"children":7931},{"style":1038},[7932],{"type":998,"value":1098},{"type":992,"tag":2004,"props":7934,"children":7936},{"id":7935},"essential-file-management-methods",[7937],{"type":998,"value":7938},"Essential File Management Methods",{"type":992,"tag":1001,"props":7940,"children":7941},{},[7942],{"type":998,"value":7943},"Understanding core file management methods enables effective file system operations and proper resource handling in Python applications.",{"type":992,"tag":7945,"props":7946,"children":7947},"table",{},[7948,7977],{"type":992,"tag":7949,"props":7950,"children":7951},"thead",{},[7952],{"type":992,"tag":7953,"props":7954,"children":7955},"tr",{},[7956,7962,7967,7972],{"type":992,"tag":7957,"props":7958,"children":7959},"th",{},[7960],{"type":998,"value":7961},"Method",{"type":992,"tag":7957,"props":7963,"children":7964},{},[7965],{"type":998,"value":7966},"Purpose",{"type":992,"tag":7957,"props":7968,"children":7969},{},[7970],{"type":998,"value":7971},"Example",{"type":992,"tag":7957,"props":7973,"children":7974},{},[7975],{"type":998,"value":7976},"Best Practice",{"type":992,"tag":7978,"props":7979,"children":7980},"tbody",{},[7981,8013,8044,8075,8106,8137,8168,8199],{"type":992,"tag":7953,"props":7982,"children":7983},{},[7984,7994,7999,8008],{"type":992,"tag":7985,"props":7986,"children":7987},"td",{},[7988],{"type":992,"tag":1022,"props":7989,"children":7991},{"className":7990},[],[7992],{"type":998,"value":7993},"os.path.exists(path)",{"type":992,"tag":7985,"props":7995,"children":7996},{},[7997],{"type":998,"value":7998},"Check if path exists",{"type":992,"tag":7985,"props":8000,"children":8001},{},[8002],{"type":992,"tag":1022,"props":8003,"children":8005},{"className":8004},[],[8006],{"type":998,"value":8007},"if os.path.exists(\"file.txt\"):",{"type":992,"tag":7985,"props":8009,"children":8010},{},[8011],{"type":998,"value":8012},"Always check before operations",{"type":992,"tag":7953,"props":8014,"children":8015},{},[8016,8025,8030,8039],{"type":992,"tag":7985,"props":8017,"children":8018},{},[8019],{"type":992,"tag":1022,"props":8020,"children":8022},{"className":8021},[],[8023],{"type":998,"value":8024},"os.path.isfile(path)",{"type":992,"tag":7985,"props":8026,"children":8027},{},[8028],{"type":998,"value":8029},"Check if path is a file",{"type":992,"tag":7985,"props":8031,"children":8032},{},[8033],{"type":992,"tag":1022,"props":8034,"children":8036},{"className":8035},[],[8037],{"type":998,"value":8038},"is_file = os.path.isfile(path)",{"type":992,"tag":7985,"props":8040,"children":8041},{},[8042],{"type":998,"value":8043},"Verify file type before access",{"type":992,"tag":7953,"props":8045,"children":8046},{},[8047,8056,8061,8070],{"type":992,"tag":7985,"props":8048,"children":8049},{},[8050],{"type":992,"tag":1022,"props":8051,"children":8053},{"className":8052},[],[8054],{"type":998,"value":8055},"os.path.isdir(path)",{"type":992,"tag":7985,"props":8057,"children":8058},{},[8059],{"type":998,"value":8060},"Check if path is a directory",{"type":992,"tag":7985,"props":8062,"children":8063},{},[8064],{"type":992,"tag":1022,"props":8065,"children":8067},{"className":8066},[],[8068],{"type":998,"value":8069},"is_dir = os.path.isdir(path)",{"type":992,"tag":7985,"props":8071,"children":8072},{},[8073],{"type":998,"value":8074},"Confirm directory before listing",{"type":992,"tag":7953,"props":8076,"children":8077},{},[8078,8087,8092,8101],{"type":992,"tag":7985,"props":8079,"children":8080},{},[8081],{"type":992,"tag":1022,"props":8082,"children":8084},{"className":8083},[],[8085],{"type":998,"value":8086},"os.path.getsize(path)",{"type":992,"tag":7985,"props":8088,"children":8089},{},[8090],{"type":998,"value":8091},"Get file size in bytes",{"type":992,"tag":7985,"props":8093,"children":8094},{},[8095],{"type":992,"tag":1022,"props":8096,"children":8098},{"className":8097},[],[8099],{"type":998,"value":8100},"size = os.path.getsize(\"file.txt\")",{"type":992,"tag":7985,"props":8102,"children":8103},{},[8104],{"type":998,"value":8105},"Check size before reading",{"type":992,"tag":7953,"props":8107,"children":8108},{},[8109,8118,8123,8132],{"type":992,"tag":7985,"props":8110,"children":8111},{},[8112],{"type":992,"tag":1022,"props":8113,"children":8115},{"className":8114},[],[8116],{"type":998,"value":8117},"os.listdir(path)",{"type":992,"tag":7985,"props":8119,"children":8120},{},[8121],{"type":998,"value":8122},"List directory contents",{"type":992,"tag":7985,"props":8124,"children":8125},{},[8126],{"type":992,"tag":1022,"props":8127,"children":8129},{"className":8128},[],[8130],{"type":998,"value":8131},"files = os.listdir(\".\")",{"type":992,"tag":7985,"props":8133,"children":8134},{},[8135],{"type":998,"value":8136},"Use for directory exploration",{"type":992,"tag":7953,"props":8138,"children":8139},{},[8140,8149,8154,8163],{"type":992,"tag":7985,"props":8141,"children":8142},{},[8143],{"type":992,"tag":1022,"props":8144,"children":8146},{"className":8145},[],[8147],{"type":998,"value":8148},"os.mkdir(path)",{"type":992,"tag":7985,"props":8150,"children":8151},{},[8152],{"type":998,"value":8153},"Create single directory",{"type":992,"tag":7985,"props":8155,"children":8156},{},[8157],{"type":992,"tag":1022,"props":8158,"children":8160},{"className":8159},[],[8161],{"type":998,"value":8162},"os.mkdir(\"new_folder\")",{"type":992,"tag":7985,"props":8164,"children":8165},{},[8166],{"type":998,"value":8167},"Check existence first",{"type":992,"tag":7953,"props":8169,"children":8170},{},[8171,8180,8185,8194],{"type":992,"tag":7985,"props":8172,"children":8173},{},[8174],{"type":992,"tag":1022,"props":8175,"children":8177},{"className":8176},[],[8178],{"type":998,"value":8179},"os.makedirs(path)",{"type":992,"tag":7985,"props":8181,"children":8182},{},[8183],{"type":998,"value":8184},"Create directory tree",{"type":992,"tag":7985,"props":8186,"children":8187},{},[8188],{"type":992,"tag":1022,"props":8189,"children":8191},{"className":8190},[],[8192],{"type":998,"value":8193},"os.makedirs(\"path/to/folder\")",{"type":992,"tag":7985,"props":8195,"children":8196},{},[8197],{"type":998,"value":8198},"Use exist_ok=True for safety",{"type":992,"tag":7953,"props":8200,"children":8201},{},[8202,8211,8216,8225],{"type":992,"tag":7985,"props":8203,"children":8204},{},[8205],{"type":992,"tag":1022,"props":8206,"children":8208},{"className":8207},[],[8209],{"type":998,"value":8210},"os.rename(old, new)",{"type":992,"tag":7985,"props":8212,"children":8213},{},[8214],{"type":998,"value":8215},"Rename file or directory",{"type":992,"tag":7985,"props":8217,"children":8218},{},[8219],{"type":992,"tag":1022,"props":8220,"children":8222},{"className":8221},[],[8223],{"type":998,"value":8224},"os.rename(\"old.txt\", \"new.txt\")",{"type":992,"tag":7985,"props":8226,"children":8227},{},[8228],{"type":998,"value":8229},"Ensure destination doesn't exist",{"type":992,"tag":1001,"props":8231,"children":8232},{},[8233],{"type":998,"value":8234},"File management is a crucial skill for Python developers. These techniques help you build robust applications that can organize files, maintain clean systems, and handle file operations reliably.",{"type":992,"tag":8236,"props":8237,"children":8239},"content-exercise",{":widget-view":8238,"category":6,"id":848},"true",[],{"type":992,"tag":2004,"props":8241,"children":8243},{"id":8242},"test-your-knowledge",[8244],{"type":998,"value":8245},"Test Your Knowledge",{"type":992,"tag":1001,"props":8247,"children":8248},{},[8249],{"type":998,"value":8250},"Test your understanding of file management concepts:",{"type":992,"tag":8252,"props":8253,"children":8257},"redirect-button",{"icon":8254,"label":8255,"url":8256},"pi pi-send","Take Quiz","/tutorial-quiz/python/file-management",[],{"type":992,"tag":2004,"props":8259,"children":8261},{"id":8260},"whats-next",[8262],{"type":998,"value":8263},"What's Next?",{"type":992,"tag":1001,"props":8265,"children":8266},{},[8267],{"type":998,"value":8268},"Congratulations! You've completed the File Operations section. You now understand how to read files, write files, and manage your file system effectively.",{"type":992,"tag":1001,"props":8270,"children":8271},{},[8272,8274,8279],{"type":998,"value":8273},"Ready to continue your Python journey? Check out our next section on ",{"type":992,"tag":8275,"props":8276,"children":8277},"a",{"href":864},[8278],{"type":998,"value":855},{"type":998,"value":8280}," to learn how to structure your code into reusable modules.",{"type":992,"tag":8282,"props":8283,"children":8284},"style",{},[8285],{"type":998,"value":8286},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .app-dark-mode .shiki span {color: var(--shiki-app-dark-mode);background: var(--shiki-app-dark-mode-bg);font-style: var(--shiki-app-dark-mode-font-style);font-weight: var(--shiki-app-dark-mode-font-weight);text-decoration: var(--shiki-app-dark-mode-text-decoration);}html.app-dark-mode .shiki span {color: var(--shiki-app-dark-mode);background: var(--shiki-app-dark-mode-bg);font-style: var(--shiki-app-dark-mode-font-style);font-weight: var(--shiki-app-dark-mode-font-weight);text-decoration: var(--shiki-app-dark-mode-text-decoration);}",{"title":8,"searchDepth":36,"depth":36,"links":8288},[8289,8294,8297,8298,8299,8300],{"id":2006,"depth":27,"text":2009,"children":8290},[8291,8292,8293],{"id":2307,"depth":36,"text":2310},{"id":3221,"depth":36,"text":3224},{"id":4330,"depth":36,"text":4333},{"id":5589,"depth":27,"text":5592,"children":8295},[8296],{"id":5822,"depth":36,"text":5825},{"id":7244,"depth":27,"text":7247},{"id":7935,"depth":27,"text":7938},{"id":8242,"depth":27,"text":8245},{"id":8260,"depth":27,"text":8263},[8302],{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},1782373751147]