```
path = r'D:/PYTHON/My codes/Frequency envelopes/test'

all_files = glob.glob(os.path.join(path, "*.csv"))

names = [os.path.basename(x) for x in all_files]

df = pd.DataFrame()

for file_, name in zip(all_files, names):

    file_df = pd.read_csv(file_,index_col=False)

    file_df['file_name'] = name
    df = df.append(file_df)

```

\*\*This piece of code is working for read all files from directory and save in one file, i want to read first 10 files from directory and save in one csv file and next 10 files from same directory to save in other csv and so on i want to do this until not complete all csv files in directory , if anyone have solution please mention here \*\*