# \#directory

**URL:** https://forum.uipath.com/tag/directory/1798.md

[Latest](https://forum.uipath.com/latest.md) · [Categories](https://forum.uipath.com/categories.md) · [Tags](https://forum.uipath.com/tags.md)

---

## [Unable to delete desired file](https://forum.uipath.com/t/unable-to-delete-desired-file/4985922)

<div class="topic-metadata">

**Author:** [@Mathkar\_kunal](https://forum.uipath.com/u/Mathkar_kunal)\
**Replies:** 5\
**Last updated:** [September 2, 2025, 2:14pm UTC](https://forum.uipath.com/t/unable-to-delete-desired-file/4985922 "2025-09-02T14:14:34Z")

</div>

Hello, my requirement is to check empty excel file in folder and delete it. so i am using for loop to give directory path and for each file checking row count , if count is zero then delete using delete activity, but i…

---

## [I need to read the file count of all the files in all the sub folders in a folder](https://forum.uipath.com/t/i-need-to-read-the-file-count-of-all-the-files-in-all-the-sub-folders-in-a-folder/629539)

<div class="topic-metadata">

**Author:** [@JOBIN\_JOSE](https://forum.uipath.com/u/JOBIN_JOSE)\
**Replies:** 2\
**Last updated:** [October 8, 2023, 9:36am UTC](https://forum.uipath.com/t/i-need-to-read-the-file-count-of-all-the-files-in-all-the-sub-folders-in-a-folder/629539 "2023-10-08T09:36:52Z")

</div>

i need to read the file count of all the files in all the sub folders in a folder , i have written the code as “Directory.GetFiles(“C:\\Users\\JOBIJOSE\\Documents\\raw\\raw”).COUNT” in the folder i have different folders wit…

---

## [Directory.GetFiles error](https://forum.uipath.com/t/directory-getfiles-error/558276)

<div class="topic-metadata">

**Author:** [@Short](https://forum.uipath.com/u/Short)\
**Replies:** 2\
**Last updated:** [June 27, 2023, 3:07pm UTC](https://forum.uipath.com/t/directory-getfiles-error/558276 "2023-06-27T15:07:18Z")

</div>

Hi all I was using this fuction to get the latest downloaded file - Directory.GetFiles(“C:\\Users\\User\\Downloads”).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Tolist(0) It was working fine until I downlo…

---

## [How to spit one zip archive into multiple smaller zip archives](https://forum.uipath.com/t/how-to-spit-one-zip-archive-into-multiple-smaller-zip-archives/407202)

<div class="topic-metadata">

**Author:** [@Andrei\_Croitoru](https://forum.uipath.com/u/Andrei_Croitoru)\
**Replies:** 10\
**Last updated:** [May 10, 2023, 1:32am UTC](https://forum.uipath.com/t/how-to-spit-one-zip-archive-into-multiple-smaller-zip-archives/407202 "2023-05-10T01:32:03Z")

</div>

Hello! I have to split one zip archive into mutiple smaller ones because it’s to large to attach it on outlook mail. Can this be done with any activity or invoke code? I try to invoke this code, but i get this error. …

---

## [🦉 🔖 \[CheatSheet\] - Filesystem APIs](https://forum.uipath.com/t/cheatsheet-filesystem-apis/359405)

<div class="topic-metadata">

**Author:** [@ppr](https://forum.uipath.com/u/ppr)\
**Replies:** 0\
**Last updated:** [November 8, 2021, 12:53pm UTC](https://forum.uipath.com/t/cheatsheet-filesystem-apis/359405 "2021-11-08T12:53:59Z")

</div>

This CheatSheet introduces the basic use of available functionalities provided by the .Net API in order to deal with the filesystem. With further examples also special cases are presented. Basic Usage System.IO.Direct…

---

## [Sort files by size in ascending order](https://forum.uipath.com/t/sort-files-by-size-in-ascending-order/450604)

<div class="topic-metadata">

**Author:** [@Dhruvi\_Arumugam](https://forum.uipath.com/u/Dhruvi_Arumugam)\
**Replies:** 6\
**Last updated:** [June 23, 2022, 6:58am UTC](https://forum.uipath.com/t/sort-files-by-size-in-ascending-order/450604 "2022-06-23T06:58:37Z")

</div>

Hi Everyone, I need help on the below scenario. I need to sort files by size in ascending order and store the result in a list. Currently I am giving a root path and using SearchOption.Alldirectories to get specific t…

---

## [How to get pdf's from particular folder](https://forum.uipath.com/t/how-to-get-pdfs-from-particular-folder/448281)

<div class="topic-metadata">

**Author:** [@Muralikrishna\_Surve](https://forum.uipath.com/u/Muralikrishna_Surve)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 6:25am UTC](https://forum.uipath.com/t/how-to-get-pdfs-from-particular-folder/448281 "2022-06-15T06:25:57Z")

</div>

Hi, I have used Variable type - Array of string and Expression - Directory.GetFiles(“E:\\GoogleSheet\\GoogleSheet”) But still showing this error Main.xaml: Compiler error(s) encountered processing expression “Directory.…

---

## [Get only specific paths from multiple subfolders](https://forum.uipath.com/t/get-only-specific-paths-from-multiple-subfolders/391020)

<div class="topic-metadata">

**Author:** [@Andrei\_Croitoru](https://forum.uipath.com/u/Andrei_Croitoru)\
**Replies:** 1\
**Last updated:** [January 14, 2022, 8:57am UTC](https://forum.uipath.com/t/get-only-specific-paths-from-multiple-subfolders/391020 "2022-01-14T08:57:40Z")

</div>

Hello! I have this directory with multiple subdirectories. How do i extract the path to ones which have “a” in it. Just a, a\_1, a\_2, and add them in a list. \[a,a\_1,a\_2\]. I hope this can be done with linq. Thank yo…
