Files
mayan-edms/mayan/apps/sources/migrations/0020_auto_20181128_0752.py
T
Roberto Rosario d35323aa65 Watch folders: Add support for subfolders
Add support for subfolder scanning to watch folders. Closes
GitLab issue #498 and #563.

This commit adds a new field to watch folders called
"include_subdirectories".

The directory walk was also updated to use pathlib2.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-04-05 01:03:34 -04:00

27 lines
919 B
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-28 07:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sources', '0019_auto_20180803_0440'),
]
operations = [
migrations.AddField(
model_name='watchfoldersource',
name='include_subdirectories',
field=models.BooleanField(default=False, help_text='If checked, not only will the folder path be scanned for files but also its subdirectories.', verbose_name='Include subdirectories?'),
preserve_default=False,
),
migrations.AlterField(
model_name='watchfoldersource',
name='folder_path',
field=models.CharField(help_text='Server side filesystem path to scan for files.', max_length=255, verbose_name='Folder path'),
),
]