X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/d6af4135a2b881fbc746f6ba86a117a25221c6f0..c859c9d9325e2ed86d5d7b067e1209e73ee81251:/src/validators/valid-name.tsx?ds=sidebyside

diff --git a/src/validators/valid-name.tsx b/src/validators/valid-name.tsx
index c3650542..89bb3f96 100644
--- a/src/validators/valid-name.tsx
+++ b/src/validators/valid-name.tsx
@@ -31,7 +31,7 @@ export const validFileName = (value: string) => {
 export const validFilePath = (filePath: string) => {
     const errors = filePath.split('/').map(pathPart => {
         if (pathPart === "") { return "Empty dir name not allowed"; }
-        return validFileName(pathPart);
+        return validNameAllowSlash(pathPart) || validFileName(pathPart);
     });
     return errors.filter(e => e !== undefined)[0];
 };
\ No newline at end of file
