# Browse tags printing folder

**URL:** <https://forum.inductiveautomation.com/t/browse-tags-printing-folder/60498>\
**Category:** Ignition\
**Tags:** ignition78, vision, scripting\
**Created:** [June 8, 2022, 3:39pm UTC](https://forum.inductiveautomation.com/t/browse-tags-printing-folder/60498 "2022-06-08T15:39:45Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 9, 2022, 4:15pm UTC](https://forum.inductiveautomation.com/t/browse-tags-printing-folder/60498/20 "2022-06-09T16:15:05Z")

</div>

```python
from com.inductiveautomation.ignition.common import TypeUtilities

# Grabs current Date and Time
getDateTime = system.date.now()
# Returns current hour in a 0-23 format
getHour = system.date.getHour24(getDateTime)
# Creates list to store tag paths
paths = []

# Checks if time is Midnight
if getHour == 7:
	# Gets all tags in folder sub structure and writes to an array
    tags = system.tag.browseTags(parentPath="folder", recursive = True)
    for tag in tags:
        if not tag.isFolder():
        	paths.append((tag.path, TypeUtilities.getInitValueForClass(tag.dataType.javaType)))
        	
    paths, values = list(zip(*paths))
    system.tag.writeAll(paths, values)

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/browse-tags-printing-folder/60498)._
