{
    "componentChunkName": "component---src-templates-note-note-js",
    "path": "/notes/Fill-up-the-empty-notes-with-some-standard-text",
    "result": {"data":{"mdx":{"body":"var _excluded = [\"components\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\nvar _frontmatter = {};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n    props = _objectWithoutProperties(_ref, _excluded);\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"h2\", null, \"Add some placeholder text for all empty files\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"import os\\n\\n# Specify your Obsidian vault directory here\\nobsidian_vault_directory = '/path/to/your/obsidian/directory'\\n\\n# Specify the text you want to add to the empty files\\nreplacement_text = 'Your replacement text'\\n\\n# Iterate over each file in the directory\\nfor root, dirs, files in os.walk(obsidian_vault_directory):\\n    for file in files:\\n        # If the file is a markdown file\\n        if file.endswith('.md'):\\n            file_path = os.path.join(root, file)\\n            # Open the file and check if it's empty\\n            with open(file_path, 'r+') as f:\\n                contents = f.read()\\n                # If the file is empty, write the replacement text\\n                if not contents.strip():\\n                    print(file_path)\\n                    # Print the filename\\n                    # Print the path\\n\\n\")), mdx(\"h2\", null, \"Add some placeholder text for all empty files\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"import os\\n\\n# Specify your Obsidian vault directory here\\nobsidian_vault_directory = '/path/to/your/obsidian/directory'\\n\\n# Specify the text you want to add to the empty files\\nreplacement_text = 'Your replacement text'\\n\\n# Iterate over each file in the directory\\nfor root, dirs, files in os.walk(obsidian_vault_directory):\\n    for file in files:\\n        # If the file is a markdown file\\n        if file.endswith('.md'):\\n            file_path = os.path.join(root, file)\\n            # Open the file and check if it's empty\\n            with open(file_path, 'r+') as f:\\n                contents = f.read()\\n                # If the file is empty, write the replacement text\\n                if not contents.strip():\\n                    f.seek(0)\\n                    f.write(replacement_text)\\n                    f.truncate()\\n\\n\")));\n}\n;\nMDXContent.isMDXComponent = true;","inboundReferences":[{"id":"3c93a8a8-5651-50e7-8952-407eb8363023","slug":"High-Value-TODOs"}]}},"pageContext":{"slug":"Fill-up-the-empty-notes-with-some-standard-text","node":{"childMdx":{"slug":"Fill-up-the-empty-notes-with-some-standard-text"}}}},
    "staticQueryHashes": []}